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

Home » Public Forums » archive » suppression of time axis annotation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
suppression of time axis annotation [message #43996] Fri, 06 May 2005 07:05
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Hi,

I am trouble controlling axis annotations when I specify time based
axes. Specifically, I am unable to suppress the time-based tickmarks
by specifying the TICKNAME keyword. Does someone know a another method
for suppressing tickmarks?

I have pasted in a simple example below that shows the trouble. Inone
window I get the tickintervals I desire but the annotationn I don't
want. In the other I get the suppression I want, but not the tick interval.

Thanks and cheers,
ben

****START****
PRO ExamplePlot

n = 360
t = TIMEGEN(n, start = JULDAY(1,1,2005), STEP_SIZE = 7)
y1 = RandomN(seed, n)
y2 = RandomN(seed, n)

p1 = [0.1, 0.5, 0.9, 0.9]
p2 = [0.1, 0.1, 0.9, 0.5]

Window,/Free
PLOT, t, y1, $
Title = "Ticks matched - "+ $
"but don't want annotation in middle", $
POSITION = p1, $
XSTYLE = 1, $
XTICKUNITS = ['Months', 'Years'], $
XTICKINTERVAL = 4, $
XMINOR = 4, $
XTICKNAME = REPLICATE(' ', 30)
PLOT, t, y2, $
NOERASE = 1, $
POSITION = p2, $
XSTYLE = 1, $
XTICKUNITS = ['Months', 'Years'], $
XTICKINTERVAL = 4, $
XMINOR = 4

Window,/Free
PLOT, t, y1, $
Title = "Ticks unmatched - " + $
"but annotation is suppressed in middle", $
POSITION = p1, $
XSTYLE = 1, $
XTICKNAME = REPLICATE(' ', 30)
PLOT, t, y2, $
NOERASE = 1, $
POSITION = p2, $
XSTYLE = 1, $
XTICKUNITS = ['Months', 'Years'], $
XTICKINTERVAL = 4, $
XMINOR = 4

END


****END******
[Message index]
 
Read Message
Previous Topic: Re: Muddling Through XML Files
Next Topic: Re: Auto change window focus (OS X) [BUG]

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

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

Total time taken to generate the page: 0.00168 seconds