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

Home » Public Forums » archive » Re: 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
Re: inverse the axis [message #62371] Mon, 08 September 2008 15:33 Go to next message
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
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.
Re: inverse the axis [message #62385 is a reply to message #62371] Mon, 08 September 2008 11:57 Go to previous messageGo to next message
willettk is currently offline  willettk
Messages: 20
Registered: October 2006
Junior Member
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]
Re: inverse the axis [message #62469 is a reply to message #62371] Mon, 08 September 2008 16:18 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: converting a string to an IDL command
Next Topic: Scientific Notation on Log Plots

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

Current Time: Thu Oct 09 04:04:01 PDT 2025

Total time taken to generate the page: 1.28025 seconds