Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Chart::Gnuplot and Windows XP

by BrowserUk (Pope)
on Nov 05, 2008 at 23:38 UTC ( #721862=note: print w/ replies, xml ) Need Help??

in reply to Chart::Gnuplot and Windows XP

A little more information now I've gotten to downloading the gnuplot package. There seem to be a lot of problems with Chart::Gnuplot.

Amongst others,

  • you need to code the output file thusly:     output => 'c:\\\\test\\\\test.png', in order to get 'c:\\test\\test.png' into the command file. Otherwise you get the Invalid Parameter - 90 error.

    You'll also get that same error if the output file already exists.

  • The output produced (once you get it to actually produce output!), is initially not the .png you are specify, but rather an EPS format file. (with a .png extension).

    Chart::Gnuplot then goes looking for a convert utility (from the ImageMagick distribution), to translate that into the required .png (gif, bmp etc.)

    Depending upon the output format required, it will also go looking for a couple of other utilities, ps2pdf, pdf2ps which are also not a part of the distribution. I'm not sure where they come from.

It looks like it would take some serious work (and therefore a serious need!) to get this working under windows.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Comment on Re: Chart::Gnuplot and Windows XP
Select or Download Code
Re^2: Chart::Gnuplot and Windows XP
by Anonymous Monk on Aug 22, 2012 at 14:08 UTC
    For me this works on Windows XP:
    my $chart = Chart::Gnuplot->new( gnuplot => $gnuplotpath, terminal => "gif transparent", output => $filename, );
    If terminal is not specified I also get the Invalid Parameter - 90 error.
      I also got the -90 error in windows because I did not have ghostscript installed. I installed it and it worked. Also I got errors if I did not set the PATH envt variable or else give the full path to gnuplot.exe and convert.exe.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://721862]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2015-01-31 07:26 GMT
Find Nodes?
    Voting Booth?

    My top resolution in 2015 is:

    Results (257 votes), past polls