From help-octave-request at bevo dot che dot wisc dot edu Thu Jan 22 15:39:39 2004 Subject: Setting plot ranges From: Joe Koski To: Octave_post Date: Thu, 22 Jan 2004 14:35:16 -0700 In a recent exercise, because of some extreme "outliers," I needed to override the vertical axis of a plot with gset yrange. I had been entering this range "manually" e. g., gset yrange [0:10], but the scale varied from plot to plot, so I decided to automate the process by calculating a maximum that filtered out the extreme values. It appears that you can't enter a real (or string) variable such as Ymax = 2.0*mean(y); S_Ymax = num2str(Ymax); into the gset yrange [0:Ymax] or gset yrange [0:S_Ymax] command. Octave just tells me that Ymax or S_Ymax are undefined. Is there trick to doing this, or must plot ranges be entered only numerically, without the use of variable names? Thanks for the advice. 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 -------------------------------------------------------------