# HG changeset patch # User jwe # Date 1112036216 0 # Node ID 6b91c98e3db02411a3d9aae1149a62144c812272 # Parent 3d9afb170a3989e77baea5e4183c4c62ff500a13 [project @ 2005-03-28 18:56:56 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -11,6 +11,10 @@ 2005-03-28 Dmitri A. Sergatskov + * plot/__axis_label__.m, plot/axis.m, plot/grid.m, + plot/plot_border.m, plot/replot.m, plot/title.m, plot/top_title.m: + Use __gnuplot_replot__ instead of replot. + * plot/__axis_label__.m, plot/axis.m, plot/bottom_title.m, plot/contour.m, plot/errorbar.m, plot/figure.m, plot/grid.m, plot/loglogerr.m, plot/loglog.m, plot/mesh.m, plot/mplot.m, diff --git a/scripts/plot/__axis_label__.m b/scripts/plot/__axis_label__.m --- a/scripts/plot/__axis_label__.m +++ b/scripts/plot/__axis_label__.m @@ -33,7 +33,8 @@ __gnuplot_raw__ (sprintf ("set %s \"%s\";\n", caller, undo_string_escapes (text))); if (automatic_replot) - replot (); + ## No semicolon (see replot.m). + __gnuplot_replot__ endif else error ("%s: text must be a string", caller); diff --git a/scripts/plot/axis.m b/scripts/plot/axis.m --- a/scripts/plot/axis.m +++ b/scripts/plot/axis.m @@ -169,7 +169,8 @@ __gnuplot_raw__ ("set yrange [] writeback;\n"); __gnuplot_raw__ ("set zrange [] writeback;\n"); ## XXX FIXME XXX if writeback were set in plot, no need to replot here. - replot (); + ## No semicolon (see replot.m). + __gnuplot_replot__ __gnuplot_raw__ ("set noautoscale x;\n"); __gnuplot_raw__ ("set noautoscale y;\n"); __gnuplot_raw__ ("set noautoscale z;\n"); @@ -264,7 +265,8 @@ if (nargin > 1) axis (varargin{:}); elseif (automatic_replot) - replot (); + ## No semicolon (see replot.m). + __gnuplot_replot__ endif endfunction diff --git a/scripts/plot/grid.m b/scripts/plot/grid.m --- a/scripts/plot/grid.m +++ b/scripts/plot/grid.m @@ -59,7 +59,8 @@ endif if (do_replot && automatic_replot) - replot (); + ## No semicolon (see replot.m). + __gnuplot_replot__ endif endfunction diff --git a/scripts/plot/plot_border.m b/scripts/plot/plot_border.m --- a/scripts/plot/plot_border.m +++ b/scripts/plot/plot_border.m @@ -111,7 +111,8 @@ endif if (automatic_replot) - replot (); + ## No semicolon (see replot.m). + __gnuplot_replot__ endif endfunction diff --git a/scripts/plot/shg.m b/scripts/plot/shg.m --- a/scripts/plot/shg.m +++ b/scripts/plot/shg.m @@ -36,6 +36,6 @@ warning ("shg: ignoring extra arguments"); endif - replot (); + __gnuplot_replot__ endfunction diff --git a/scripts/plot/title.m b/scripts/plot/title.m --- a/scripts/plot/title.m +++ b/scripts/plot/title.m @@ -37,7 +37,8 @@ __gnuplot_raw__ (sprintf ("set title \"%s\";\n", undo_string_escapes (text))); if (automatic_replot) - replot (); + ## No semicolon (see replot.m). + __gnuplot_replot__ endif else error ("title: text must be a string"); diff --git a/scripts/plot/top_title.m b/scripts/plot/top_title.m --- a/scripts/plot/top_title.m +++ b/scripts/plot/top_title.m @@ -39,7 +39,8 @@ __gnuplot_raw__ (sprintf ("set top_title \"%s\";\n", undo_string_escapes (text))); if (automatic_replot) - replot (); + ## No semicolon (see replot.m). + __gnuplot_replot__ endif else error ("error: top_title: text must be a string");