Re: unwanted tick label [message #20507] |
Thu, 29 June 2000 00:00 |
John-David T. Smith
Messages: 384 Registered: January 2000
|
Senior Member |
|
|
Mark Fardal wrote:
>
> Hi,
>
> when I try the following
>
> plot,findgen(5),xstyle=8
> axis,/xaxis,xtickv=[1.5,2.5],xticks=2,xtickname=['Lo','Hi'], $
> xtitle='Only Want String labels'
>
> it produces an "0.00" at the upper left corner. I don't want this.
> In the plot I need to make, I have a completely different numerical
> scale on this axis, so it's outright wrong. The label only appears
> if !x.crange is close to 0.
>
> Right now as a workaround I am setting !x.crange=0.001.
> Is there a better way to get rid of this label? Is this a bug
> or a feature?
>
> { x86 linux unix 5.2.1 Jun 4 1999} on Debian Linux
>
> thanks,
> Mark Fardal
XTICKS is the number of tick *intervals*. Which makes you wonder why it's not
called XTICKINTERVAL. In any case, the number of ticks produced is XTICKS+1.
JD
--
J.D. Smith /*\ WORK: (607) 255-6263
Cornell University Dept. of Astronomy \*/ (607) 255-5842
304 Space Sciences Bldg. /*\ FAX: (607) 255-5875
Ithaca, NY 14853 \*/
|
|
|
Re: unwanted tick label [message #20510 is a reply to message #20507] |
Thu, 29 June 2000 00:00  |
loeh
Messages: 4 Registered: March 2000
|
Junior Member |
|
|
Hi
I think this gives the result you want (xticks=1)
IDL> plot,findgen(5),xstyle=8
IDL> axis,/xaxis,xtickv=[1.5,2.5],xticks=1,xtickname=['Lo','Hi'],
xtitle='Only Want String labels'
IDL> print,!version
{ x86 Win32 Windows 5.3 Nov 11 1999}
Mirko
Mark Fardal <fardal@weka.astro.umass.edu> wrote
> when I try the following
>
> plot,findgen(5),xstyle=8
> axis,/xaxis,xtickv=[1.5,2.5],xticks=2,xtickname=['Lo','Hi'], $
> xtitle='Only Want String labels'
>
> it produces an "0.00" at the upper left corner. I don't want this.
> In the plot I need to make, I have a completely different numerical
> scale on this axis, so it's outright wrong. The label only appears
> if !x.crange is close to 0.
>
Sent via Deja.com http://www.deja.com/
Before you buy.
|
|
|