changeset 11636:2be7477f470a release-3-0-x

Fix colorbar with contours
author David Bateman <dbateman@free.fr>
date Tue, 12 Feb 2008 16:19:50 -0500
parents e08d2fff0d58
children ffbf57f4ba30
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Tue Feb 12 16:09:13 2008 -0500
+++ b/scripts/ChangeLog	Tue Feb 12 16:19:50 2008 -0500
@@ -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	Tue Feb 12 16:09:13 2008 -0500
+++ b/scripts/plot/__go_draw_axes__.m	Tue Feb 12 16:19:50 2008 -0500
@@ -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))
@@ -1181,6 +1181,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