changeset 11790:fcc1d0382bd8 release-3-0-x

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 5e4f7df9e7af
children 42dfc06588e5
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
+++ b/scripts/ChangeLog
@@ -4,6 +4,10 @@
 	input array are integers.  Append spaces as necessary when
 	building  character array.
 
+2008-06-05  Jaroslav Hajek <highegg@gmail.com>
+
+	* plot/__go_draw_axes__.m: Use fprintf for formatted output.
+
 2008-06-04  Bill Denney  <bill@denney.ws>
 
 	* time/weekday.m: Allow vector inputs and speed up.
--- a/scripts/plot/__go_draw_axes__.m
+++ b/scripts/plot/__go_draw_axes__.m
@@ -1070,27 +1070,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