changeset 7873:02b590f46a29

correct fputs to fprintf in __go_draw_axes__.m
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 05 Jun 2008 20:42:14 +0200
parents 1b63f8da772d
children e3a502930e2a
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 16 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Thu Jun 05 14:41:52 2008 -0400
+++ b/scripts/ChangeLog	Thu Jun 05 20:42:14 2008 +0200
@@ -1,3 +1,7 @@
+2008-06-05  Jaroslav Hajek <highegg@gmail.com>
+
+	* plot/__go_draw_axes__.m: Use fprintf for formatted output.
+
 2008-06-04  Michael Goffioul  <michael.goffioul@gmail.com>
 
 	* plot/__go_draw_axes__.m: Support hggroup objects.
--- a/scripts/plot/__go_draw_axes__.m	Thu Jun 05 14:41:52 2008 -0400
+++ b/scripts/plot/__go_draw_axes__.m	Thu Jun 05 20:42:14 2008 +0200
@@ -1075,27 +1075,27 @@
 	fputs (plot_stream, "set border 895;\n");
       else
 	if (strcmpi (axis_obj.yaxislocation, "right"))
-	  fputs (plot_stream, "unset ytics; set y2tics %s nomirror\n",
-		 axis_obj.tickdir);
+	  fprintf (plot_stream, "unset ytics; set y2tics %s nomirror\n",
+		   axis_obj.tickdir);
 	  if (strcmpi (axis_obj.xaxislocation, "top"))
-	    fputs (plot_stream, "unset xtics; set x2tics %s nomirror\n",
-		 axis_obj.tickdir);
+	    fprintf (plot_stream, "unset xtics; set x2tics %s nomirror\n",
+		     axis_obj.tickdir);
 	    fputs (plot_stream, "set border 12;\n");
 	  else
-	    fputs (plot_stream, "unset x2tics; set xtics %s nomirror\n",
-		 axis_obj.tickdir);
+	    fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
+		     axis_obj.tickdir);
 	    fputs (plot_stream, "set border 9;\n");
 	  endif
 	else
-	  fputs (plot_stream, "unset y2tics; set ytics %s nomirror\n",
-		 axis_obj.tickdir);
+	  fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n",
+		   axis_obj.tickdir);
 	  if (strcmpi (axis_obj.xaxislocation, "top"))
-	    fputs (plot_stream, "unset xtics; set x2tics %s nomirror\n",
-		   axis_obj.tickdir);
+	    fprintf (plot_stream, "unset xtics; set x2tics %s nomirror\n",
+		     axis_obj.tickdir);
 	    fputs (plot_stream, "set border 6;\n");
 	  else
-	    fputs (plot_stream, "unset x2tics; set xtics %s nomirror\n",
-		   axis_obj.tickdir);
+	    fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
+		     axis_obj.tickdir);
 	    fputs (plot_stream, "set border 3;\n");
 	  endif
 	endif