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

Home » Public Forums » archive » Re: How to reverse the order of tick mark
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: How to reverse the order of tick mark [message #7079] Fri, 20 September 1996 00:00
James Tappin is currently offline  James Tappin
Messages: 54
Registered: December 1995
Member
Gary Fu wrote:
>
> Hi,
>
> In idl command 'plot, [0,100], [0,100], /nodata', the labels of the
> tick marks are ordered from 0, 20, 40, 60, 80, up to 100. Is there
> a way to reverse the order from 100 to 0 ?
>
> TIA
>
> Gary

Try:
plot, /nodata, fltarr(2), xrange=[100,0], yrange=[0,100]

That is of course assuming that it's the X-axis you want to reverse. (If you
specify both ranges and /nodata the argument still has to be there but is
entirely ignored).

--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722 | |
+----------------------------------------------------------- --+---------+
Re: How to reverse the order of tick mark [message #7084 is a reply to message #7079] Thu, 19 September 1996 00:00 Go to previous message
offenbrg is currently offline  offenbrg
Messages: 31
Registered: August 1993
Member
gfu@shark.gsfc.nasa.gov (Gary Fu) writes:

> Hi,

> In idl command 'plot, [0,100], [0,100], /nodata', the labels of the
> tick marks are ordered from 0, 20, 40, 60, 80, up to 100. Is there
> a way to reverse the order from 100 to 0 ?

> TIA

Actually, it's pretty straightforward:

plot,[0,100],[0,100],/nodata,xrange=[100,0],yrange=[100,0]

Joel
--
"...And I am unanimous in this" - Mrs. Slocumbe
------------------------------------------------------------ ----------
| Joel D Offenberg | offenbrg@fondue.gsfc.nasa.gov |
| Hughes STX, NASA/GSFC/LASP | UIT Sci team & COBE Unix SysAdm |
Re: How to reverse the order of tick mark [message #7085 is a reply to message #7084] Thu, 19 September 1996 00:00 Go to previous message
Tim Patterson is currently offline  Tim Patterson
Messages: 65
Registered: October 1995
Member
Gary Fu wrote:
>
> Hi,
>
> In idl command 'plot, [0,100], [0,100], /nodata', the labels of the
> tick marks are ordered from 0, 20, 40, 60, 80, up to 100. Is there
> a way to reverse the order from 100 to 0 ?
>
> TIA
>
> Gary

try:

plot,[0,100],[0,100], xrange=[100,0], /nodata

Although this plots the graph 'back-to-front' and
doesn't just change the tick labels.

Hope this helps


Tim
Re: How to reverse the order of tick mark [message #7086 is a reply to message #7084] Thu, 19 September 1996 00:00 Go to previous message
peter is currently offline  peter
Messages: 80
Registered: February 1994
Member
Gary Fu (gfu@shark.gsfc.nasa.gov) wrote:
: Hi,

: In idl command 'plot, [0,100], [0,100], /nodata', the labels of the
: tick marks are ordered from 0, 20, 40, 60, 80, up to 100. Is there
: a way to reverse the order from 100 to 0 ?

plot, [0,100],[0,100], xrange=[100,0]

: TIA

YW

: Gary

Peter
Re: How to reverse the order of tick mark [message #7087 is a reply to message #7084] Thu, 19 September 1996 00:00 Go to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
How about adding xrange=[100,0] and/or yrange=[100,0]?

--------
Andrew F. Loughe afl@cdc.noaa.gov
University of Colorado, CIRES http://cdc.noaa.gov/~afl
Campus Box 449 phn:(303)492-0707 fax:(303)497-7013
Boulder, CO 80309-0449 "He who laughs last thinks slowest!"

On 18 Sep 1996, Gary Fu wrote:

> Hi,
>
> In idl command 'plot, [0,100], [0,100], /nodata', the labels of the
> tick marks are ordered from 0, 20, 40, 60, 80, up to 100. Is there
> a way to reverse the order from 100 to 0 ?
>
> TIA
>
> Gary
>
>
Re: How to reverse the order of tick mark [message #7089 is a reply to message #7084] Thu, 19 September 1996 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Gary Fu wrote:
> In idl command 'plot, [0,100], [0,100], /nodata', the labels of the
> tick marks are ordered from 0, 20, 40, 60, 80, up to 100. Is there
> a way to reverse the order from 100 to 0 ?

plot, [0,100], [0,100], /nodata, xrange=[100,0]

--
Liam Gumley
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL with C/C++
Next Topic: $$COULD YOU USE A LOTTA XTRA CASH?$$

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

Current Time: Wed Oct 08 19:26:46 PDT 2025

Total time taken to generate the page: 0.00590 seconds