----- Original Message ----- From: "Sisyphus" <[email protected]> > For me, 'demo pgplot' and 'demo bad2' work fine unless grwnd.exe has > already been run in the current pdl shell. (I think that's what you're > getting, too.) That grwnd.exe is definitely buggy.
Apparently, on MS Windows, we can't open a second grwnd.exe window, even if the first instance has been closed. (This is the doing of the PGPLOT module, and might even go back to the pgplot.dll.) There is, however, a way of getting a second window to open. Try this script: ########################## use PDL::Demos::Screen; use PDL::Demos::PGPLOT_OO_demo; PDL::Demos::PGPLOT_OO_demo::run(); ########################### To run the pgplot demo in the cmd.exe shell (ie not in the pdl shell), run this script: ########################### use PDL::Demos::Screen; use PDL::Demos::PGPLOT_demo; PDL::Demos::PGPLOT_demo::run(); ########################### The transform demo has a couple of problems. Firstly there's 3 occurrences of a hardcoded '/xw' that need to be replaced with '/GW' for MS Windows - I've now fixed that in the git version of Demos/Transform_demo.pm. Secondly, there's the problem mentioned above - that an (inevitably unsuccessful) attempt is made to open a second grwnd instance. I haven't yet done anything about that - the demo still goes apeshit when the attempt to open the second window is made. (As I mentioned above, see Demos/PGPLOT_OO_demo.pm for a method of getting 2 windows.) I used this script to run the transform demo in the cmd.exe shell: ############################# use PDL::Demos::Screen; use PDL::Demos::Transform_demo; PDL::Demos::Transform_demo::run(); ############################# And for bad2: ############################# use PDL::Demos::Screen; use PDL::Demos::BAD2_demo; PDL::Demos::BAD2_demo::run(); ############################# > I haven't yet looked as closely as I would like at > http://spdg1.sci.shizuoka.ac.jp/grwinlib/english/ > > but maybe there's something there that could help. The stuff there (whch > includes a GrWnd.exe) is being currently maintained - and the guy is > responsive to bug reports and requests for assistance. I gave that GrWnd.exe a try, but pgplot.dll croaks with an error that it failed to open grwnd - even though the GrWnd.exe window opens up fine. Maybe we need to use that GrWnd.exe with the static library that ships with it. I haven't summonsed the energy to try that static library out - looks to me that it doesn't have any drivers other than grwnd (which dampens my enthusiasm somewhat). Cheers, Rob _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
