Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    SVG::Graph 0.01

    Download button

    No screenshots available
    Downloads: 380  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Allen Day and Chris To | More programs
    Perl Artistic License / FREE
    August 29th, 2006, 09:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    SVG::Graph description

    SVG::Graph is a Perl module to visualize your data in Scalable Vector Graphics (SVG) format.

    SVG::Graph is a Perl module to visualize your data in Scalable Vector Graphics (SVG) format.

    SYNOPSIS

    use SVG::Graph;
    use SVG::Graph::Data;
    use SVG::Graph::Data::Datum;

    #create a new SVG document to plot in...
    my $graph = SVG::Graph->new(width=>600,height=>600,margin=>30);

    #and create a frame to hold the data/glyphs
    my $frame = $graph->add_frame;

    #let's plot y = x^2
    my @data = map {SVG::Graph::Data::Datum->new(x=>$_,y=>$_^2)}
    (1,2,3,4,5);
    my $data = SVG::Graph::Data->new(data => @data);

    #put the xy data into the frame
    $frame->add_data($data);

    #add some glyphs to apply to the data in the frame
    $frame->add_glyph('axis', #add an axis glyph
    'x_absolute_ticks' => 1, #with ticks every one
    #unit on the x axis
    'y_absolute_ticks' => 1, #and ticks every one
    #unit on the y axis

    'stroke' => 'black', #draw the axis black
    'stroke-width' => 2, #and 2px thick
    );

    $frame->add_glyph('scatter', #add a scatterplot glyph
    'stroke' => 'red', #the dots will be outlined
    #in red,
    'fill' => 'red', #filled red,
    'fill-opacity' => 0.5, #and 50% opaque
    );

    #print the graphic
    print $graph->draw;

    SVG::Graph is a suite of perl modules for plotting data. SVG::Graph currently supports plots of one-, two- and three-dimensional data, as well as N-ary rooted trees. Data may be represented as:

    Glyph Name Dimensionality supported
    1d 2d 3d tree
    --------------------------------------------------------
    Axis x
    Bar Graph x
    Bubble Plot x
    Heatmap Graph x
    Line Graph x
    Pie Graph x
    Scatter Plot x
    Spline Graph x
    Tree x

    SVG::Graph 0.01 is a pre-alpha release. Keep in mind that many of the glyphs are not very robust.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    visualize data | Scalable Vector Graphics | Perl module | SVG::Graph | visualize | data

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM