From: Andreas T. <ti...@rk...> - 2002-08-14 11:42:59
|
On Wed, 14 Aug 2002, Michael Haggerty wrote: > For just setting tables and line types and stuff you don't have to > extend the PlotItem interface directly; you can use the Data class > which is a type of PlotItem already customized for array data. > > There are many examples in demo.py about how to use the Data class. > For example, > > x = arange(10, typecode=Float) > y1 = x**2 > d = Gnuplot.Data(x, y1, > title='calculated by python', > with='points 3 3') Ahh, now this is clear. I just was 'grep'ing for PlotItem and did not found this keyword. The reason is that I'm quite a Python beginner, sorry. > You would do something like the following (untested): > > g.plot( > Gnuplot.Data(X, title='This is the X dataset', with='linespoints'), > Gnuplot.Data(Y, title='Some more data', with='points 2 5'), > ) I've got the point now. Thanks for this fine software! > Please subscribe. The list has an archive but since the list is very > new there are only a few messages in it. I'll do so for my next question ;-). The amount of lists I'm subscribed is quite high but if this is a low volume list I can cope with this. Kind regards Andreas. |