inverse the axis [message #62386] |
Mon, 08 September 2008 11:54  |
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  |
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
|
|
|