James Maciokas wrote:
>Could someone please point me in the right direction for list of available
>plot types? I have searched the documentation and the mailing list without
>success.
>
>Some example plots with errorbars would be most helpful.
>
The styles of plotting are documented within gnuplot under the help
system; type "help plot with" and "help set style" to get info. To plot
with errorbars under Gnuplot.py, you need either 3 (x,y,delta) or 4
(x,y,ylow,ymax) columns of data and then specify the "with='errorbars'"
option:
>>> import Gnuplot
>>> g = Gnuplot.Gnuplot()
>>> g('set xrange [0:5]')
>>> g.plot(Gnuplot.Data([[1,2,0.1],[2,3,0.2], [3,4,0.3]],
with='errorbars'))
>>> g.plot(Gnuplot.Data([[1,2,1.5,2.2],[2,3,2.8,3.3], [3,4,3.2,4.7]],
with='errorbars'))
Hope that helps.
Michael
--
Michael Haggerty
mh...@al...
|