| Re: suppression of time axis annotation [message #43986 is a reply to message #43981] |
Fri, 06 May 2005 12:33   |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
R.G. Stockwell wrote:
> "David Fanning" <davidf@dfanning.com> wrote in message
> news:MPG.1ce52bfb5be9076c9899f4@news.frii.com...
>
> ...
>
>> Humm, this does what you want:
>>
>> Window,1
>> PLOT, t, y1, $
>> Title = "Ticks unmatched - " + $
>> "but annotation is suppressed in middle", $
>> POSITION = p1, $
>> XSTYLE = 1, $
>> XTICKINTERVAL = 4, $
>> XMINOR = 4
>> XTICKFORMAT='(A0)'
>> PLOT, t, y2, $
>> NOERASE = 1, $
>> POSITION = p2, $
>> XSTYLE = 1, $
>> XTICKUNITS = ['Months', 'Years'], $
>> XTICKINTERVAL = 4, $
>> XMINOR = 4
>>
>> But on my output it looks like someone has gone in there
>> with a magic marker and scribbled all over the left side
>> of the plot. Do you see that, too?
>>
>> Cheers,
>>
>> David
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting, Inc.
>> Coyote's Guide to IDL Programming: http://www.dfanning.com/
>
>
>
> I see the scribbling too. It is the julian day number being printed out
> repeatedly
> over itself many times.
> Are you are missing a ",$" at the end of xminor=4 in the first plot?
> The xtickformat is not being set.
> However, that does not seem to make a difference.
>
> Back to the original question, suppressing tickmarks.
> You can set the length to be very small.
> xticklen = 0.001
> I don't know if that helps. But you can put it in your (Ben's) second
> example
> and the ugly unmatched tickmarks go away.
>
> As a guess, I think the tickmarks when using xtickunits=['month', 'year']
> are
> in units of months. (i.e. you are set to 4 months as xtickinterval].
> Perhaps that does not
> translate to days, since a month can have different days.
> If you drop the xtickunits name, and replace the xtickinterval with the
> appropriate
> days (i.e. xtickinterval = 4*30) it still does not line up.
>
Thanks Bob and David,
The XTICKLEN solution almost works - it just the enduser wants
tickmarks. Added to my woes is that I really want to stack three plots
or more. I though I could perhaps plot the bottom one first, get the
tickvalues (XTICK_GET) and the specify the tickvalues (XTICKV) but that
doesn't do it.
Hmmm.
Thanks anyway,
Ben
|
|
|
|