From: Michael H. <mh...@al...> - 2005-04-21 21:50:29
|
Thomas Pfaff wrote: >I'm not yet a subscriber to this list, so please send at least a CC of >your answers to me personally. > >I used gnuplot.py quite extensively a couple of years ago and I really >loved it, except for the problem that the gnuplot process needed the >'using' keyword when plotting time-series data. As the PlotItems of >that time didn't allow setting the using-keyword I was forced to work >with temporary files which takes away much of the speed and comfort of >having python controlling gnuplot. > >[...] > >So my question is, if there is any way to trick the gnuplot process >into using python-arrays that contain time-series information without >resorting to temporary files? I would be back to gnuplot and python in >no time :-) > > Why are you so allergic to temporary files? In most cases they won't be significantly slower, as the bulk of the time is for Python to format the data as ASCII data, which has to be done anyway. Write yourself a little helper function like utils.write_array() but which is smart about date-formatted data. File PlotItems can take arbitrary strings as their "using" argument. What else do you need? Cheers, Michael |