Re: Plotting dates on the x-axis
- To: mathgroup at smc.vnet.net
- Subject: [mg53385] Re: [mg53366] Plotting dates on the x-axis
- From: "David Annetts" <davidannetts at ihug.com.au>
- Date: Sat, 8 Jan 2005 23:02:49 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi János
> I have a list like this:
>
> {{"Thu Dec 9 23:02:31 EST 2004",41.6`},{"Thu Dec 9 23:17:25
> EST \ 2004",46.22222222222222`},{"Thu Dec 9 23:32:24 EST
> 2004",41.6`},{"Thu Dec 9 \
> 23:47:18 EST 2004",41.6`},{"Fri Dec 10 00:02:19 EST \
> 2004",46.22222222222222`},{"Fri Dec 10 00:17:18 EST
> 2004",41.6`},{"Fri Dec 10 \
> 00:32:13 EST 2004",46.22222222222222`}}
>
> just much more values for days and days. I would like to plot
> them with the date on the x-axes, but show the date value
> only when there is enough space to to have it, or when the
> day change. Or telling otherwise to suppress the display of
> any date tick on the axis if the day did not change.
>
> Looks like I have to convert the dates into seconds from the
> epoch, to have to monotony, but should I put the individual
> days - and may be every 4 hours - into a separate list and
> try to setup the x-axis that way ?
There is an old package by Nigel King called DateFunctions that may help,
but this too requires dates as seconds. You can find this at
http://forums.wolfram.com/mathgroup/archive/1999/Aug/msg00039.html
As far as I can see, the benefit to using separate lists for your major &
minor axes ticks is readability.
> What chapter should I read from the Book ?
Searching for Ticks is a good start, since that's the command you'll end up
using.
Regards,
Dave.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 6/01/2005