Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Chart::Gnuplot and Windows XP

by dHarry (Abbot)
on Nov 05, 2008 at 13:01 UTC ( #721632=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Chart::Gnuplot and Windows XP
in thread Chart::Gnuplot and Windows XP

It's not me mixing up "/" and "\", judge for yourself:

use strict; use warnings; use Chart::Gnuplot; my $chart = Chart::Gnuplot->new( output => "c:/tmp/test.png", title => "Simple testing", xlabel => "My x-axis label", ylabel => "My y-axis label", gnuplot => "C:/gnuplot/binaries/wgnuplot.exe", ); my $dataSet = Chart::Gnuplot::DataSet->new( func => "sin(x)" ); $chart->plot2d($dataSet); print "Done...\n";

Resulting in the familiar error message;-)


Comment on Re^4: Chart::Gnuplot and Windows XP
Download Code
Replies are listed 'Best First'.
Re^5: Chart::Gnuplot and Windows XP
by massa (Hermit) on Nov 05, 2008 at 13:43 UTC
    try this:
    use strict; use warnings; use Chart::Gnuplot; my $chart = Chart::Gnuplot->new( output => 'c:\tmp\test.png', title => 'Simple testing', xlabel => 'My x-axis label', ylabel => 'My y-axis label', gnuplot => 'C:\gnuplot\binaries\wgnuplot.exe', ); my $dataSet = Chart::Gnuplot::DataSet->new( func => 'sin(x)' ); $chart->plot2d($dataSet); print "Done...\n";
    (notice the single quotes and the backslashes...)

    What is the result?

    []s, HTH, Massa (κς,πμ,πλ)

      Result: util.c: Invalid argument

      If I comment the gnuplot line and use the bat file approach the message is: C:\workspace\Testbed>"C:\gnuplot\binaries\wgnuplot.exe" \tmp\yZ35R2dy8v/plot

      I think I am developing an understanding why it's not working, see my response to BrowserUK.

      Cheers,
      dHarry

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2015-08-31 08:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (354 votes), past polls