MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Plotting dates on the x-axis

  • To: mathgroup at
  • Subject: [mg53366] Plotting dates on the x-axis
  • From: János <janos.lobb at>
  • Date: Sat, 8 Jan 2005 02:39:34 -0500 (EST)
  • Sender: owner-wri-mathgroup at


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 ?

What chapter should I read from the Book ?

Any good hint ?

Thanks ahead,

clear perl code is better than unclear awk code; but NOTHING comes 
close to unclear perl code

  • Prev by Date: extra data in expressions
  • Next by Date: Re: logical indexing using more than one variable in a pure function
  • Previous by thread: Re: extra data in expressions
  • Next by thread: Re: Plotting dates on the x-axis