Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Chart::Plot::Canvas 0.02

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Francois Perrad | More programs
    Perl Artistic License / FREE
    April 24th, 2007, 20:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Chart::Plot::Canvas description

    Chart::Plot::Canvas is a Perl module to plot two dimensional data in an Tk Canvas.

    Chart::Plot::Canvas is a Perl module to plot two dimensional data in an Tk Canvas.

    SYNOPSIS

    use Chart::Plot::Canvas;

    my $img = Chart::Plot::Canvas->new();
    my $anotherImg = Chart::Plot::Canvas->new ($image_width, $image_height);

    $img->setData (@dataset) or die( $img->error() );
    $img->setData (@xdataset, @ydataset);
    $img->setData (@anotherdataset, 'red_dashedline_points');
    $img->setData (@xanotherdataset, @yanotherdataset,
    'Blue SolidLine NoPoints');

    my ($xmin, $ymin, $xmax, $ymax) = $img->getBounds();

    $img->setGraphOptions ('horGraphOffset' => 75,
    'vertGraphOffset' => 100,
    'title' => 'My Graph Title',
    'horAxisLabel' => 'my X label',
    'vertAxisLabel' => 'my Y label' );

    print $img->draw();

    $img->canvas($toplevel)->pack();

    This package overloads Chart::Plot and supplies a new method 'canvas' that returns a Tk Canvas equivalent to GD::Image returned by the method 'draw' of Chart::Plot.

    The graphs are descripted by same way as for Chart::Plot.

    With Chart::Plot::Canvas, the method 'draw' works like with Chart::Plot.

    USAGE

    See Chart::Plot for all over methods.

    Create the canvas: canvas()

    $img->canvas(toplevel);

    This method creates the canvas and returns it.

    use Chart::Plot::Canvas;

    my $img = Chart::Plot->new();
    $img->setData (@xdataset, @ydataset);
    my $cv = $img->canvas($toplevel);
    $cv->pack();

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    plot 2D data | Tk Canvas | Perl module | Chart::Plot::Canvas | plot | 2D

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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