changeset 6436:f1f2e0de340a

[project @ 2007-03-23 14:17:29 by jwe]
author jwe
date Fri, 23 Mar 2007 14:17:29 +0000
parents 71888a0ab040
children 190dfe8b8f08
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Mar 23 14:17:02 2007 +0000
+++ b/scripts/ChangeLog	Fri Mar 23 14:17:29 2007 +0000
@@ -1,5 +1,7 @@
 2007-03-23  John W. Eaton  <jwe@octave.org>
 
+	* plot/__go_draw_axes__.m: Use %g for label coordinates, not %d.
+
 	* plot/contour.m: Don't call drawnow.
 
 2007-03-22  John W. Eaton  <jwe@octave.org>
--- a/scripts/plot/__go_draw_axes__.m	Fri Mar 23 14:17:02 2007 +0000
+++ b/scripts/plot/__go_draw_axes__.m	Fri Mar 23 14:17:29 2007 +0000
@@ -570,11 +570,11 @@
 	  label = obj.string;
 	  halign = obj.horizontalalignment;
 	  if (nd == 3)
-	    fprintf (plot_stream, "set label \"%s\" at %d,%d,%d %s;\n",
+	    fprintf (plot_stream, "set label \"%s\" at %g,%g,%g %s;\n",
 		     undo_string_escapes (label),
 		     lpos(1), lpos(2), lpos(3), halign);
 	  else
-	    fprintf (plot_stream, "set label \"%s\" at %d,%d %s;\n",
+	    fprintf (plot_stream, "set label \"%s\" at %g,%g %s;\n",
 		     undo_string_escapes (label),
 		     lpos(1), lpos(2), halign);
 	  endif