2008/03/08

Python-Gnuplot 1.7 interface

all python module files are located under ./build/lib/Gnuplot
demo.py
Gnuplot.py
PlotItems.py

Interface intrdocution:
PlotItems.Data()

if want to redraw, can use replot()
gp.plot(p1)
gp.replot(p2)

or add all into one itemlist, then plot()
gp._add_to_queue( (p1,p2,p3) )
gp.replot()

一些 tricks:

如果要在一个page上画多副图,可以
======================================
set multiplot ;会抹掉前面的图
plot ...

set parametric ;参数画图
plot [0:2*pi] cos(t),sin(t)
unset parametric ;恢复

plot ... ;标题会和第一条标题重叠

==========
如果不用set multiplot,可以 plot, replot,replot...

没有评论: