On Jun 27, 2006, at 7:49 PM, [EMAIL PROTECTED] wrote:


On Jun 27, 2006, at 5:35 PM, Derek Lamb wrote:

Well, not that I can't get anything done, just that it was more annoying than I had the patience for at the time I tried to learn. For example:
use PDL::Graphics::PLplot;
$w=new PDL::Graphics::PLplot(DEV=>'xwin');
$x=sequence(10);
$y=$x*$x;
$w->xyplot($x,$y,PLOTTYPE=>'LINE');  ##nothing happens
$w->xyplot($x,$y,PLOTTYPE=>'LINE');  ##now it makes the plot
##and every new xyplot command has to be entered twice
$w->close; ##nothing happens until I click on the window and then press 'enter'

I don't have those problems if I write to a png, and considering that >95% of my plotting is to xwin, I stopped fiddling with it. And, admittedly lazily, put off contacting the author until I could see if it was a PLplot issue or a PDL::Graphics::PLplot issue. Also, it's apparent that there are many many low-level functions, which is great, but I can't use them (again, lazily, because I haven't read the main PLplot docs) if all I know about them is "info not available, *** does not process bad values." This is on my personal list of PDL todos, "Learn PLplot and write some more docs for it", I just haven't done it yet.

I believe that most of the problems you are experiencing are due to the xwin driver and not PLplot itself, as you've observed by using the png driver instead. On linux systems you are probably better off using the gnome canvas driver ("gcw") and on OS-X systems you should consider the aquaterm driver ("aqt"). For better or worse, these drivers have been developed more recently and are more actively maintained than the xwin driver.

Sorry, upon further examination it looks like the gcw driver behaves in a similar way. However, I believe that (even with xwin) you only have to issue each xyplot command once, and that all the plots will be drawn when you call the close method.

-Hazen


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to