Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: csv2png.pl - Line Graphs from a CSV file

by slojuggler (Beadle)
on Mar 21, 2002 at 21:42 UTC ( [id://153429]=note: print w/replies, xml ) Need Help??


in reply to csv2png.pl - Line Graphs from a CSV file

I figured out the problem...my goof!

I initially cut and pasted the code from the page. So, I ended up deleting the two red +s that dot the csv2png.pl code as a result of long lines going past the page limit.

I'm posting this to help out other monks in the event they obtain the weird error that I got the first time.

Neat program..thanks!

  • Comment on Re: csv2png.pl - Line Graphs from a CSV file

Replies are listed 'Best First'.
Re^2: csv2png.pl - Line Graphs from a CSV file
by stackem (Initiate) on Feb 18, 2009 at 19:18 UTC
    By following the stated steps, I was able to create a gif file but unable to see any graph lines. The Windows Picture Viewer claimed "No preview available". Why is that so? What did I do wrong?

      Not sure. Works for me:

      Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\strawberry\perl>perl -v This is perl, v5.10.0 built for MSWin32-x86-multi-thread Copyright 1987-2007, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.

      viz. csv2png.gif

      Note that the output is actually a .gif (not a .png); maybe try a different graphics viewer?

      HTH,

      planetscape
        Yes, it's cut and paste issue. After I take a closer look at the source code and concatenate the last portion of "ght" back up with "hei" as one word on one line. It works now. --------------- ---------------- ...$graph{'hei T ...$graph{'height'}); +ght'}); O --------------- Thanks for your verification, planetscape.
Re^2: csv2png.pl - Line Graphs from a CSV file
by Anonymous Monk on Oct 01, 2017 at 03:00 UTC
    can you share me edited code in below address. i followed your instruction and deleted entries but still getting syntax error. thanks. wannamyfan@gmail.com
Re^2: csv2png.pl - Line Graphs from a CSV file
by sgupta (Initiate) on Jun 28, 2011 at 08:00 UTC
    Hi, I'm new Perl user, i need help to generate graph for 3 axes. input(x-axis) output1(y-axis) output2(z-axis) The input file is .csv Kindly provide me the input. Thanks, sgupta

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-20 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found