Hi,
sorry, that came from a cut and paste.

I am getting this error now, using wingcc.

PLPLOT ERROR, IMMEDIATE EXIT ***
Unable to either (1) open/find or (2) allocate memory for the font file
Program aborted

Is there something to set?

Thanks

Fabio D'Alfonso
'Enabling Business Through IT'
cell.  +39.348.059.40.22 *
web: www.fabiodalfonso.com
email: [email protected]
linkedin: www.linkedin.com/in/fabiodalfonso
twitter: www.twitter.com/#!/fabio_dalfonso

fax: +39.06.874.599.581
BlackBerry® Wireless Enabled Address.

* Hidden  numbers are automatically rejected by the phone

On 1/16/2012 1:17 AM, Sisyphus wrote:

----- Original Message ----- From: "Fabio D'Alfonso" <[email protected]>
To: <[email protected]>
Sent: Monday, January 16, 2012 3:58 AM
Subject: [Perldl] PLPlot on Windows/XMing


Hi,
I am also trying to get working PLPlot on Windows. I followed the syntax to get the window open on an X (Xming) but I get nothing or a file named as the hostname.

use PDL;
use PDL::Graphics::PLplot;

# read in Earth image and draw an equator.
my $pl=PDL::Graphics::PLplot->new(DEV => 'xwin', FILE => ':0');
my $x  = sequence(10);
my $y  = $x**2;
$pl->xyplot($x, $y);
$pl->close;


Firstly, note that the comment "# read in Earth image and draw an equator" is wrong. This script doesn't do that.

For me, when I run that script in the cmd.exe shell I get:

#############
C:\_32\pscrpt\pdl-graphics-plplot>perl fabio.pl
Requested device xwin not available

Plotting Options:
< 1> wingcc     Win32 GCC device
< 2> ps         PostScript File (monochrome)
< 3> psc        PostScript File (color)
< 4> xfig       Xfig file
< 5> null       Null device
< 6> mem        User-supplied memory device
< 7> svg        Scalable Vector Graphics (SVG 1.1)

Enter device number or keyword:

#############

Then, if I enter 1, the wingcc window opens up and displays the graph.

In order to get output to a file, I need to alter the script slightly.
I need to change:
FILE => ':0'
to
FILE => 'fabio'

Then re-run the script and enter (eg) 7 when prompted for a "device number or keyword". That then writes the output to an svg file named 'fabio' (in the current directory), which I can view in Firefox.

If you're getting different behaviour, I need to know exactly what that different behaviour is, including a copy'n'paste of what's happening in the cmd.exe console.

If you can't copy from the cmd.exe console, click on the little cmd icon (top left of console), select "properties" then click on the selection box for "Quick Edit Mode". You'll then be able to copy'n'paste from the console.

And could you tell us the version of PDL, and the version of PDL::Graphics::PLplot that's being found.

Cheers,
Rob

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

Reply via email to