show a lifted y-axis [message #79798] |
Thu, 29 March 2012 10:52  |
Zhang Bo
Messages: 22 Registered: October 2011
|
Junior Member |
|
|
Dear IDLers,
I want to lift the start point of y-axis so that this yaxis is showing
in the upper space and others are showing in the lower space. I know
this can be down by set a lower yrange and squeeze the data to the
upper space, but data such as relative humidity, doesn't have negative
values and it won't be appropriate to show that on the y-axis. I
expect set the !y,cragne(0)+.5 would work, but no.
axis, /yaxis, /save, !x,cragne(0)+.5, !y,cragne(0)+.5, yrange =
[0,100], ytitle = 'RH'
any idea? and what "!y,cragne(0)" can do for a y-axis?
|
|
|
|
Re: show a lifted y-axis [message #79844 is a reply to message #79798] |
Thu, 05 April 2012 16:07  |
santorofer
Messages: 14 Registered: July 2008
|
Junior Member |
|
|
Hi Zhang,
Please, take a look at the IDL help system. In it you will see that:
CRANGE
The output axis range. Setting this variable has no effect; set ![XYZ].RANGE to change the range. ![XYZ].CRANGE[0]) always contains the minimum axis value, and ![XYZ].CRANGE[1] contains the maximum axis value of the last plot before extending the axes.
Try setting the !y.range instead. Though, I'm not sure what you would like to do exactly: what do you mean by "this yaxis is showing in the upper space and others are showing in the lower space"?
Cheers,
Fernando
On Thursday, March 29, 2012 11:52:12 AM UTC-6, Zhang Bo wrote:
> Dear IDLers,
>
> I want to lift the start point of y-axis so that this yaxis is showing
> in the upper space and others are showing in the lower space. I know
> this can be down by set a lower yrange and squeeze the data to the
> upper space, but data such as relative humidity, doesn't have negative
> values and it won't be appropriate to show that on the y-axis. I
> expect set the !y,cragne(0)+.5 would work, but no.
>
> axis, /yaxis, /save, !x,cragne(0)+.5, !y,cragne(0)+.5, yrange =
> [0,100], ytitle = 'RH'
>
> any idea? and what "!y,cragne(0)" can do for a y-axis?
|
|
|