From help-octave-request at bevo dot che dot wisc dot edu Thu Jan 22 16:49:28 2004 Subject: Re: Setting plot ranges From: Joe Koski To: , Octave_post Date: Thu, 22 Jan 2004 15:45:47 -0700 on 1/22/04 3:25 PM, geordie dot mcbain at aeromech dot usyd dot edu dot au at geordie dot mcbain at aeromech dot usyd dot edu dot au wrote: > It's not pretty, but compare: > > -*- > y = x = (0:100)'; > y(end) *= 100; > plot (x,y); > -*- > > and > > -*- > x = (0:100)'; > y(end) *= 100; > Ymax = 2*mean (y); > graw (sprintf ("set yrange [0:%g]\n", Ymax)); > plot (x, y); > -*- > > OK, so you need to send the command to gnuplot directly, via the "back door." Thanks for the hint. Joe Koski ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------