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

Home » Public Forums » archive » Re: tick label problem
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: tick label problem [message #42724] Mon, 21 February 2005 13:01
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <MPG.1c83f440ac265c5198992c@news.frii.com>,
David Fanning <davidf@dfanning.com> wrote:

> It's hard to say if this is a feature or a bug, ...

That depends on whether you are a developer or a user. ;-)

Ken Bowman
Re: tick label problem [message #42727 is a reply to message #42724] Mon, 21 February 2005 12:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
steph writes:

> I am using AXIS to plot a secondary x axis with customed tick position
> and labels. For some reason, I am not able to find a way to avoid
> having the 'zeroth' tick labeled with '0.000'. This is what I am using
> in my code (after I use plot with xstyle=8):
>
> ;Array of labels (numbers 0 to 5 --> strings)
> lab = strtrim(string([0,1,2,3,4,5]),1)
>
> ;Array of position of ticks in data units
> V = [0.0,0.123,0.435,0.668,1.12,1.67]
>
> ;Add secondary axis (x axis at top)
> axis, xaxis=1, xticks=6, xtickv=V, xtickname=lab
>
> With this code, IDL draws the secondary x-axis as required but also
> adds a label '0.000' at the location of the yaxis. This label is wrong
> but I don't know how to get rid of it. Any ideas?

It's hard to say if this is a feature or a bug, but
it doesn't look right to me. I'd mention it to RSI
and see what they have to say about it.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: widget_base alignment question
Next Topic: Re: how to rerun subroutine only?

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

Current Time: Sat Oct 11 08:31:26 PDT 2025

Total time taken to generate the page: 0.89473 seconds