comparison scripts/plot/axis.m @ 5253:6b91c98e3db0

[project @ 2005-03-28 18:56:56 by jwe]
author jwe
date Mon, 28 Mar 2005 18:56:56 +0000
parents 3d9afb170a39
children 4c8a2e4e0717
comparison
equal deleted inserted replaced
5252:3d9afb170a39 5253:6b91c98e3db0
167 ## fixes the axis limits, like axis(axis) should; 167 ## fixes the axis limits, like axis(axis) should;
168 __gnuplot_raw__ ("set xrange [] writeback;\n"); 168 __gnuplot_raw__ ("set xrange [] writeback;\n");
169 __gnuplot_raw__ ("set yrange [] writeback;\n"); 169 __gnuplot_raw__ ("set yrange [] writeback;\n");
170 __gnuplot_raw__ ("set zrange [] writeback;\n"); 170 __gnuplot_raw__ ("set zrange [] writeback;\n");
171 ## XXX FIXME XXX if writeback were set in plot, no need to replot here. 171 ## XXX FIXME XXX if writeback were set in plot, no need to replot here.
172 replot (); 172 ## No semicolon (see replot.m).
173 __gnuplot_replot__
173 __gnuplot_raw__ ("set noautoscale x;\n"); 174 __gnuplot_raw__ ("set noautoscale x;\n");
174 __gnuplot_raw__ ("set noautoscale y;\n"); 175 __gnuplot_raw__ ("set noautoscale y;\n");
175 __gnuplot_raw__ ("set noautoscale z;\n"); 176 __gnuplot_raw__ ("set noautoscale z;\n");
176 elseif (strcmp (ax, "tight")) 177 elseif (strcmp (ax, "tight"))
177 ## XXX FIXME XXX if tight, plot must set ranges to limits of the 178 ## XXX FIXME XXX if tight, plot must set ranges to limits of the
262 endif 263 endif
263 264
264 if (nargin > 1) 265 if (nargin > 1)
265 axis (varargin{:}); 266 axis (varargin{:});
266 elseif (automatic_replot) 267 elseif (automatic_replot)
267 replot (); 268 ## No semicolon (see replot.m).
269 __gnuplot_replot__
268 endif 270 endif
269 endfunction 271 endfunction
270 272
271 %!demo 273 %!demo
272 %! t=0:0.01:2*pi; x=sin(t); 274 %! t=0:0.01:2*pi; x=sin(t);