From: Michael H. <mh...@al...> - 2006-01-10 09:10:29
|
frank h. wrote: > I am not sure I understand gnuplot.py completely yet > but I havent found a way to plot a timeseries, e.g. > > set xdata time > > in gnuplot speak > > how would one go about this with gnuplot.py? In general, you can send any command to gnuplot by using >>> g = Gnuplot.Gnuplot() >>> g('set xdata time') But that leaves the more difficult question of how you can output time data from Gnuplot.py. Unfortunately, there is no support for time data built in. You could output the data to a file via another mechanism then plot it using a Gnuplot.File object. Or you could hack Gnuplot.py to add support for time data. This has been discussed before; see for example http://sourceforge.net/mailarchive/message.php?msg_id=2172189 http://sourceforge.net/mailarchive/message.php?msg_id=11511622 http://sourceforge.net/mailarchive/message.php?msg_id=2179048 Michael |