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