Re: How to reverse the order of tick mark [message #7079] |
Fri, 20 September 1996 00:00 |
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  |
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  |
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  |
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  |
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  |
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
|
|
|