Interesting.  I wonder if the gnuplot call itself is hanging.  Sisyphus, can 
you try the following on your platform?


  $w = PDL::Gnuplot::Window::new()
  $w->plot(xvals(50)**2)

That should test whether the gnuplot pipe itself is working...


 
On Dec 5, 2011, at 7:03 AM, chm wrote:

> On 12/3/2011 1:15 PM, Sisyphus wrote:
>> 
>> In Gnuplot_demo.pm I had to get rid of the unix-centric `which gnuplot`
>> command.
>> Then, having installed version 0.10ced of PDL::Graphics::Gnuplot and
>> with gnuplot.exe in my path, I tried running the following script:
>> 
>> use PDL::Demos::Screen;
>> do "Gnuplot_demo.pm";
>> PDL::Demos::Gnuplot_demo::run();
>> 
>> That produced the following output:
>> 
>> ##########################
>> ---- Code:
>> # ensure that the module is loaded
>> use PDL::Graphics::Gnuplot;
>> 
>> # Create a Gnuplot object - the default device displays on most
>> # operating systems. (No plot window yet - just the object).
>> 
>> $w = gpwin();
>> 
>> # Create variables to plot
>> $x = xvals(1000);
>> $y = $x/1000 * sin($x/10);
>> 
>> ---- Output:
>> 
>> ##########################
>> 
>> At that point nothing else happens, and I have to Ctrl-C to get back to
>> a command prompt.
> 
> Are you running this under the pdl2 or perldl shell?
> 
>> Haven't had time to look any further.
>> 
>> Cheers,
>> Rob
> 


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

Reply via email to