Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Graph with perl

by senget76 (Acolyte)
on Aug 14, 2002 at 11:57 UTC ( #190036=perlquestion: print w/replies, xml ) Need Help??

senget76 has asked for the wisdom of the Perl Monks concerning the following question:

Hi I am looking for suggestion here I need to draw a graph from a set of data that I have I try to look at Perl MagicK, but not really getting the answer Could somebody give me a suggestion or tutorial I am willingly add your link to my homepage later on :)

edited: Wed Aug 14 15:11:52 2002 by jeffa - fixed title typo

Replies are listed 'Best First'.
Re: Garph with perl
by grummerX (Pilgrim) on Aug 14, 2002 at 12:19 UTC
Re: Graph with perl
by hacker (Priest) on Aug 14, 2002 at 13:05 UTC
    Something like..
    use strict; use GD::Graph::bars; use GD::Graph::colour; use GD::Graph::Data; my $data = GD::Graph::Data->new([["1st","2nd","3rd","4th", "5th","6th","7th", "8th"], [ 1, 2, 5, 6, 3, 1.7, 1, 3], ]) or die GD::Graph::Data->error; my $graph = GD::Graph::bars->new(); $graph->set( x_label => 'X Axis', y_label => 'Y Axis', title => 'Enron Stock Valuations', y_max_value => 8, y_tick_number => 8, y_label_skip => 2, bar_spacing => 4, shadow_depth => 4, shadowclr => 'steelblue', transparent => 0, ) or warn $graph->error; print STDOUT header("image/jpeg"); binmode STDOUT; print STDOUT $my_graph->plot($data)->jpeg();
    There's also a bunch of other people here who have asked related questions.
Re: Graph with perl
by Hanamaki (Chaplain) on Aug 14, 2002 at 16:49 UTC
    Take a look at GraphViz.pm, too.

    Edited: ~Wed Aug 14 22:29:15 2002 (GMT) by footpad: Replaced <A HREF> tag with [cpan://] tag, per Consideration.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2023-06-09 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (35 votes). Check out past polls.

    Notices?