On 2007-11-22 19:18-0000 Andrew Ross wrote:

>
> For some time I've been pondering ways of plotting up time series over
> days / months. Many plotting packages (e.g. gnuplot) provide special
> options for time series so you can format the axis labels in a human
> dd/mm type format for example. Plplot currently has no such facility.
> This has been brought up on the list before. It is also something I'd
> personally find useful in my work.
>
> What I am thinking about is adding a new (x|y)opt flag for plaxes, perhaps
> 'T'. This would interpret the corresponding axis as a time. The format
> of the time would be determined using a new function, perhaps pltimefmt
> which would allow you to specify the time format,
> e.g. pltimefmt("%H:%d")
> would format the labels as hour:minute. I would suggest adopting the
> format used by strftime. This function is relatively standard (it is
> in SVr4, C89 and C99) and would make a good basis for the formatting
> routine.  Again, there is the question of how a time should be
> represented. I would suggest interpreting the data as seconds since 1st
> Jan 1970 (the usual standard).
>
> Any comments?

I was interested enough so I googled for strftime.  strftime appears
to be a comprehensive time formatting routine that would be a good to
use.  There is even a "poor man's version" that you could use
from http://www.perlmonks.org/?node_id=290054.

Anyhow, I think you have a good idea.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to