From: Alan W. I. <ir...@be...> - 2003-07-02 23:38:03
|
On Wed, 2 Jul 2003, Thomas J. Duck wrote: > Hi, > > There is an example of how to use plplot with python/qt distributed > with the source. However, the example, prova.py, isn't documented, so it > is really hard to tell what is going on (e.g., there doesn't seem to be > any documentation for plplot_widget etc). > > I was hoping to learn from the qt example and then go on to figure > out how to use plplot with python/gtk/glade. Any help or pointers to > documentation on either topic would be very much appreciated. The python interface to the plplot C library is one of our most complete front ends. Thanks to swig essentially all public API of libplplot is available from python (with redundant array dimension information dropped from the argument lists). To look at a large number of examples using our xwin device, simply execute ./pythondemos.py -dev xwin from the *installed* version in $prefix/lib/plplot5.2.1/examples/python. For more details and also comments on running prova.py read the file README.pythondemos in the same directory. That's it for the python documentation as of now, but I hope to extend the python documentation some more before the next release. BTW, prova.py is a simple proof of concept of pyqt and plplot that Alessandro Mirone (of ESRF) donated some time ago to plplot and which he hopes to improve as time permits. For a much more extensive use of pyqt and plplot (very much buried below a higher-level abstraction) that has been developed at ESRF see the pydevt project at http://pydvt.sourceforge.net/. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the PLplot scientific plotting software package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), and the Loads of Linux Links project (loll.sf.net). __________________________ Linux-powered Science __________________________ |