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

Home » Public Forums » archive » Re: unwanted tick label
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: unwanted tick label [message #20507] Thu, 29 June 2000 00:00
John-David T. Smith is currently offline  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 Go to previous message
loeh is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: HOW CAN I CALL AN EXTERNAL C ROUTINE FROM IDL ???
Next Topic: include file?

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

Current Time: Fri Oct 10 16:53:00 PDT 2025

Total time taken to generate the page: 0.00695 seconds