From: Alan W. I. <ir...@be...> - 2003-04-16 04:39:03
|
On Wed, 16 Apr 2003, Joao Cardoso wrote: > On Tuesday 15 April 2003 22:03, Alan W. Irwin wrote: > ... > > | *** There was one nasty RC1 failure for the combination of octave and png > | device. > | > | Opened p16.png.01 > | > | *** PLPLOT WARNING *** > | plsfam: Must be called before plinit. > | > | *** PLPLOT WARNING *** > | plsdev: Must be called before plinit. > | Plplot library version: 5.2.1.rc1 > | > | followed by a whole bunch of garbage output. > > The problem you report happened with me once. I couldn't reproduce it > afterwards. > > If you do: > > octave:1> figure(1,"png","po.png"); > Opened po.png > octave:2> p16 > octave:3> closefig > > everything is OK. That is exactly what test_octave.sh does. I can reproduce the above with no errors and po.png seems to display okay with kview. However, that simple test ignores the familying option that is imposed via $options in test_octave.sh, and also doesn't try any other plots first. If I modify the above test for familying and trying other plots first a bug results for p16 on my system but not for any other case. Specifically, to reproduce the bug I must do the following: octave -p "/usr/local/plplot_at/share/plplot_octave//:/usr/local/plplot_at/lib/plplot5.2.1.rc1/examples/octave//:" GNU Octave, version 2.1.35 (i386-pc-linux-gnu). Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type warranty'. *** This is a development version of Octave. Development releases *** are provided for people who want to help test, debug, and improve *** Octave. *** *** If you want a stable, well-tested version of Octave, you should be *** using one of the stable releases (when this development release *** was made, the latest stable version was 2.0.16). octave:1> plsetopt("fam", "yes") warning: It is recommended that you set 'automatic_replot=1' in your ~/.octaverc file. warning: in /usr/local/plplot_at/share/plplot_octave/figure.m near line 59, column 7: >>> warning ("It is recommended that you set 'automatic_replot=1' \n\t in your ~/.octaverc file."); ans = octave:2> figure(1,"png","po.png"); Opened po.png.1 octave:3> p1 octave:4> p7 Opened po.png.2 Opened po.png.3 octave:5> p16 octave:6> p16 octave:7> p7 Opened po.png.4 Opened po.png.5 octave:8> p1 Opened po.png.6 Notice, that p7 produces two pages every time, and p1 produces one page, but p16 (with no error message in this case) produces no pages in familying mode. If I do p16 alone after plsetopt and figure, a good result is produced. Joao, from your other good script results you probably won't be able to reproduce this bug on your system, but could you double check please using exactly the above octave commands in the order given? Note I am using octave 2.1.35. Also, I suspect my above plsetopt call is a little clumsy (I am not sure whether the "yes" is necessary), but it seems to get the job done for p7 (and p16 if done alone). Rafael, please try the same test. (I am scared to predict the outcome except that it will probably be different from both Joao's results and mine....;-)) 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 affiliation with the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |