From: Michael H. <mh...@al...> - 2010-11-17 09:15:20
|
On 11/16/2010 11:28 PM, the olele wrote: > ok, I know this is not pretty. It's what usually happens when I've been > beating my head ineffectively against the wall. > issue one: I'm trying to create two lists, one 'read', the other > 'write', and then plot them to a png file. I've had success with (much > prettier code) > using temp files, but it seems that one should not have to use temp > files, passing instead an array or file object. > issue two: the data points represent (x) - a set of variable intervals > (time between responses) and (y) an set of irregular data points > (duration of response) > the time - xrange - either doesn't format correctly or throws an > exception: 'x range is invalid' or the infamous ' Need full using spec > for x time data'. > > code: > [...] > what am I doing wrong? Gnuplot.py doesn't know anything about dates, so if you want to avoid a temporary file you might have to define your own PlotItem type. The interface of PlotItem is flexible and not so complicated, so it should be possible to write one by using the existing PlotItems as examples. Michael -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |