[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Setting plot ranges
From: |
Joe Koski |
Subject: |
Setting plot ranges |
Date: |
Thu, 22 Jan 2004 14:35:16 -0700 |
User-agent: |
Microsoft-Entourage/10.1.4.030702.0 |
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
-------------------------------------------------------------
- Setting plot ranges,
Joe Koski <=
Re: Setting plot ranges, Henry F. Mollet, 2004/01/22