|
Re: tick label problem [message #42727 is a reply to message #42724] |
Mon, 21 February 2005 12:36  |
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/
|
|
|