Re: inverse the axis [message #62371] |
Mon, 08 September 2008 15:33  |
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 #62469 is a reply to message #62371] |
Mon, 08 September 2008 16:18  |
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
|
|
|