From: Alan W. I. <ir...@be...> - 2002-01-11 05:17:52
|
On Thu, 10 Jan 2002, Joao Cardoso wrote: > Hi, > > On Suse-7.2, with python-2.0, ./pythondemos.py, demo 9, with device xwin > gives the following error after the "polar contour plot" (plot #7). > > Traceback (most recent call last): > File "./pythondemos.py", line 31, in ? > import xw09 > File "/home/jcard/plplot-devel/tmp/xw09.py", line 277, in ? > main() > File "/home/jcard/plplot-devel/tmp/xw09.py", line 269, in main > potential() > File "/home/jcard/plplot-devel/tmp/xw09.py", line 117, in potential > clevelpos = compress(clevel > 0., clevel) > TypeError: Comparison of multiarray objects other than rank-0 arrays is not > implemented. I am not going to worry about this one since such comparisons work great for my version of numpy (20.1, brought out in September). This version is part of Debian woody because woody hadn't gone into freeze at that point. I think other distributions will also soon adopt numpy 20.1 (or even 20.2 which was brought out in December). If you have further interest you could download the latest versions of numpy from http://sourceforge.net/projects/numpy. Otherwise, just set clevpos = clevel on your local machine to get around this non-implementation in your version of numpy. > > Also, on xw05, it fails with error > > *** PLPLOT ERROR *** > plcol0: Please call plinit first, aborting operation > > and lots of errors after that, ending with a seg. fault. > > xw01, xw02, xw03 and xw04 runs OK. > I have not tried the other examples. Thanks very much for spotting this one! (I missed it because I did all my recent tests with single examples.) It turned out that xw04.py (and also x04.tcl) were terminated with plend. As you discovered, this is not appropriate for multiplot examples such as pythondemos.py (and tcldemos.tcl). I also had to get rid of a nameclash that I had introduced recently between x04.tcl and x01.tcl proc names. All changes have now been committed, and I now get good results for pythondemos.py and tcldemos.tcl. Could you check these scripts again, please, (by running plplot-test.tcl) for my newly committed changes? Thanks in advance.... Alan |