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

Home » Public Forums » archive » tick label problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
tick label problem [message #42734] Mon, 21 February 2005 09:11 Go to previous message
steph is currently offline  steph
Messages: 3
Registered: February 2005
Junior Member
Hi,

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?

Many thanks,
Steph
[Message index]
 
Read Message
Read Message
Previous Topic: vector layer comparision in IDL
Next Topic: blurring and deblurring for effect

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

Current Time: Wed Oct 08 19:55:10 PDT 2025

Total time taken to generate the page: 0.00433 seconds