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******
|