Re: Axes seemingly ignoring xtickinterval [message #81745] |
Fri, 12 October 2012 07:54 |
John Coxon
Messages: 15 Registered: February 2012
|
Junior Member |
|
|
I've arrived at a fix that makes me happy (or at least works, which is
90% the same thing).
On 12/10/2012 14:13, John Coxon wrote:
> I'm using label_date to plot the bottom (AL and AU) panel, which comes
> out at the correct timescale. Since I don't want labels on the other
> panels I simply set xtickinterval to 1/24 (an hour). I set xminor to 6
> in both cases because I want 10 minute intervals.
I'm plotting three hours, so setting xtickinterval to 1.0/24.0 would
generate 3 tick intervals. Replacing the xtickinterval command with
xticks = 3 worked to generate exactly what I wanted it to; I don't
pretend to understand why IDL could do it one way and not the other.
> The AL/AU panel generates the correct timescale, but every other panel
> seems to generate a different, wrong timescale using the code below. It
> seems to be shifted to the left by 15 minutes or so (although I could be
> reading it wrong). If I include the label_date code in the other panels
> they generate the correct timescale but with unwanted labels.
>
> What am I doing wrong? Why is the following code generating two
> different timescales for the different panels and how do I stop this? If
> the only answer is to switch to using label_date on each panel, how do I
> suppress the labels that label_date generates?
I also now realise that it wasn't label_date resulting in labels, per
se: it was xtickunits. xtickunits appears to ignore any user preference
in xticknames, which I'll bear in mind.
Sorry to waste all your time!
--
John Coxon
http://www.chickensinenvelopes.net/
|
|
|
|