From: Andreas T. <ti...@rk...> - 2002-08-14 06:35:16
|
Hello, I just tried Gnuplot-py and regard it very valu to solce a certain job. Unfortunately I have real trouble using PlotItem. The documentation says: For the finest control over the output, you can create PlotItems yourself with additional keyword options, or derive new classes from PlotItem. But as a Python beginner I seem to have trouble to understand the syntax. I started with a fairly simple example: #!/usr/bin/python import Gnuplot, Gnuplot.funcutils X = [] Y = [] for x in range(32): X.append((x, 2*x )) Y.append((x, 3*x )) g = Gnuplot.Gnuplot(debug=1) g.plot(X, Y) raw_input('Please press return to continue...\n') Now I wanted to use PlotItem objects for X and Y to get finer control about titles and style because the quite simple 2*x and 3*x will be replaced by some more sophisticated database queries and further plots will be added. But I do really not understand how to instantiate PlotItems and there is no example available. Could you please provide some simple examples? Thanks for this fine software Andreas. PS: I'm not yet subscribed to this list and would be happy about a CC because a list archive does not seem to be available. |