david.grant at telus.net
Sat Aug 14 17:13:16 CDT 2004
Fernando Perez wrote:
> Steve Schmerler wrote:
>> you mean:
>> import Gnuplot
> It's a bit more than that, but hardly much at all:
> import Gnuplot2 as Gnuplot
> class NotGiven: pass
> def gp_new(mouse=NotGiven,persist=NotGiven):
> """Return a new Gnuplot instance.
> The instance returned uses the improved methods defined in Gnuplot2.
> Options (boolean):
> - mouse: if unspecified, the module global gnuplot_mouse is used.
> - persist: if unspecified, the module global gnuplot_persist is
> if mouse is NotGiven:
> mouse = gnuplot_mouse
> if persist is NotGiven:
> persist = gnuplot_persist
> g = Gnuplot.Gnuplot(persist=persist)
> if mouse:
> g('set mouse')
> return g
> Note that Gnuplot2 is IPython's enhanced Gnuplot, with support for a
> few things the original lacks and which I find indispensable for
> efficient interactive use.
I'm just curious; was it not possible to just apply patches to
Gnuplot.py instead of creating a new module?
David J. Grant
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 177 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20040814/d250d2b6/david.grant.vcf
More information about the SciPy-user