comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » show a lifted y-axis
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
show a lifted y-axis [message #79798] Thu, 29 March 2012 10:52 Go to next message
Zhang Bo is currently offline  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 #79839 is a reply to message #79798] Fri, 06 April 2012 09:18 Go to previous message
santorofer is currently offline  santorofer
Messages: 14
Registered: July 2008
Junior Member
Hi Zhang,

In case you were also interested in Displaying exploded axes with (New) Graphics (it's not clear if what you were describing was related with exploded axes), take a look at this webpage writen by one of our engineers:

http://idldatapoint.com/2011/12/22/displaying-exploded-axes- with-new-graphics/

Cheers,
Fernando
Exelis VIS
Re: show a lifted y-axis [message #79844 is a reply to message #79798] Thu, 05 April 2012 16:07 Go to previous message
santorofer is currently offline  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?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Acces to the spatial Subset widget In Envi
Next Topic: Burned Twice!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:45:42 PDT 2025

Total time taken to generate the page: 0.00489 seconds