From: Leonardo M. <lm...@ud...> - 2002-09-26 18:33:09
|
Hi Chuck > > Is there a way to plot Time/Data data in Gnuplot-py? > > I've got some two dimensional data that looks like > > the following: > > > > 12:01:30 4.63 > > 12:02:30 6.74 > > 12:03:30 0.0 > > 12:04:30 6.32 [...] > I don't have any experience myself with using date-formats in gnuplot, Is there a date-format data type in Python ?. I browsed the docs and couldn't find one. Or is there a class for that ?. Anyway, it seems that the more straightforwars way to go would be to write a small python function that converts a string "hh:mm:ss" into a floating point. It should be doable in a few lines of code. A little fancier would be a date class, with conversion methods. But may be that is overkill depending on what you need. Hope this helps, -- leo |