Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Chart::Gnuplot and Windows XP

by massa (Hermit)
on Nov 05, 2008 at 12:51 UTC ( #721630=note: print w/replies, xml ) Need Help??


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

Based on your other reply, it seems that you are mixing "/" and "\" directory separators in your chart's file name. Try not to... :-)

the file name should either be
\tmp\NTEVfipQVM\plot or
/tmp/NTEVfipQVM/plot but not
\tmp\NTEVfipQVM/plot ...

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

Replies are listed 'Best First'.
Re^4: Chart::Gnuplot and Windows XP
by dHarry (Abbot) on Nov 05, 2008 at 13:01 UTC

    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;-)

      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://721630]
help
Chatterbox?
[shmem]: yes, at least for the result in @foo
[shmem]: but the results of both operations are different.
[shmem]: result := the discarded result (what's leftmost of the statement)
[shmem]: push returns the number of elements in @foo, the assignment returns all the elements in the (renewed) @foo
[Lady_Aleena]: Sanity check please? push @line, ref($list_addition ) eq 'ARRAY' ? @$list_addition : $list_addiction; # so I don't have the change existing uses of the sub.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-04-27 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.