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

Home » Public Forums » archive » Re: Axes seemingly ignoring xtickinterval
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Axes seemingly ignoring xtickinterval [message #81745] Fri, 12 October 2012 07:54 Go to previous message
John Coxon is currently offline  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/
[Message index]
 
Read Message
Read Message
Previous Topic: Create application
Next Topic: IDL 8.2 and Object Programming

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

Current Time: Wed Oct 08 19:39:28 PDT 2025

Total time taken to generate the page: 0.00483 seconds