[SciPy-dev] PlotCanvas
Jochen Küpper
jochen at unc.edu
Wed Oct 24 11:13:50 EDT 2001
All,
I have created a very q+d-hacked PlotCanvas based on scipy.plt. In
case anybody is interested, the bare class file is attached. Feel free
to add this to scipy.plt if you see it fit. It requires one patch to
scipy.plt itself to access _active from the outside (q+d, as I said!):
Index: plt/interface.py
===================================================================
RCS file: /home/cvsroot/world/scipy/plt/interface.py,v
retrieving revision 1.10
diff -u -r1.10 interface.py
--- plt/interface.py 2001/10/12 20:07:08 1.10
+++ plt/interface.py 2001/10/24 15:05:19
@@ -498,3 +498,7 @@
else:
p.SetSize(s1)
+
+def setActive(active):
+ global _active
+ _active = active
You can also download the code including a small application from my
homepage -> homemade software page; it's part of jkext. See files
gui/plot.py, gui/kplot.py and scripts/plot. I am planning to add some
more functionality and then release this as a small sample app.
Greetings,
Jochen
--
University of North Carolina phone: +1-919-962-4403
Department of Chemistry phone: +1-919-962-1579
Venable Hall CB#3290 (Kenan C148) fax: +1-919-843-6041
Chapel Hill, NC 27599, USA GnuPG key: 44BCCD8E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot.py
Type: text/python
Size: 4269 bytes
Desc: PlotCancas class
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20011024/e237b362/attachment.bin>
More information about the SciPy-Dev
mailing list