Mercurial > hg > octave-max
changeset 7472:2d8315dcd8d2
Fix colorbar with contours
author | David Bateman <dbateman@free.fr> |
---|---|
date | Tue, 12 Feb 2008 16:19:03 -0500 |
parents | 86ba621332ff |
children | feb791af5d9f |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,8 @@ 2008-02-12 David Bateman <dbateman@free.fr> + * plot/__go_draw_axes__.m: Set pm3d implict to fix colorbars on + contour plots. + * plot/__go_draw_axes__.m: Use the cdatamapping property to set the cbrange. * plot/__img__.m: Set cdatamapping to "direct".
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -64,7 +64,7 @@ fputs (plot_stream, "set size noratio;\n"); endif - fputs (plot_stream, "set pm3d explicit;\n"); + fputs (plot_stream, "set pm3d implicit;\n"); fputs (plot_stream, "unset label;\n"); if (! isempty (axis_obj.title)) @@ -1192,6 +1192,7 @@ "set palette file \"-\" binary record=%d using 1:2:3:4;\n", cmap_sz); fwrite (plot_stream, [1:cmap_sz; cmap.'], "float32"); + fwrite (plot_stream, "\n"); else fputs (plot_stream, "set palette defined ("); for i = 1: cmap_sz