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

Home » Public Forums » archive » inverse the 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
inverse the axis [message #62386] Mon, 08 September 2008 11:54 Go to next message
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
Hi~ everyone, if I have my X-axis from -10 to 25 but I want to display
that from 25 to -10. How can I do that ? Thank you
Re: inverse the axis [message #62466 is a reply to message #62386] Mon, 08 September 2008 18:22 Go to previous message
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
On Sep 8, 6:18 pm, Jean H <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
> xiao wrote:
>> On Sep 8, 1:57 pm, wille...@gmail.com wrote:
>>> On Sep 8, 12:54 pm, xiao <littledd...@gmail.com> wrote:
>
>>>> Hi~ everyone, if I have my X-axis from -10 to 25 but I want to display
>>>> that from 25 to -10. How can I do that ? Thank you
>>> plot, indgen(10), xrange = [25,-10]
>
>> Thanks, but I want the axis value is according to the data value , Is
>> it possible?
>> Say i have a data like this : [10,8,5,2,0] And I want these values as
>> the x-axis value.
>
> IDL does it for you...
>
> try:
> X = [1,2,3,4,5]
> Y = X
>
> plot, X,Y, Xrange = [1,5]
> plot, Y,Y, Xrange = [5,1]
>
> Jean

Thanks..... Seems I asked a silly question,haha
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Scientific Notation on Log Plots
Next Topic: simple vectorizing problem

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

Current Time: Wed Oct 08 13:34:16 PDT 2025

Total time taken to generate the page: 0.00525 seconds