# HG changeset patch # User Jaroslav Hajek # Date 1212691334 -7200 # Node ID 02b590f46a29c43ca23a77b32170a6a1364172ae # Parent 1b63f8da772d677f0f71af4a4dec614dda995c04 correct fputs to fprintf in __go_draw_axes__.m diff -r 1b63f8da772d -r 02b590f46a29 scripts/ChangeLog --- 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 + + * plot/__go_draw_axes__.m: Use fprintf for formatted output. + 2008-06-04 Michael Goffioul * plot/__go_draw_axes__.m: Support hggroup objects. diff -r 1b63f8da772d -r 02b590f46a29 scripts/plot/__go_draw_axes__.m --- 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