On 09/20/2006 05:24 AM, SFantar wrote:
Hello

After searching the cpan.org site for mathematical modules, I did not find a module which can display graphically
the result of a function.
I want to see a function curve displayed in a graphical window?

How can I make it possible in Perl?
Thanks in advance for your help.


Install PDL (perl data language). On Debian when I installed 'pdl' I got PDL::Graphics::PLplot which is a rather nice, perl-native way to generate graphs.

use strict;
use warnings;
use PDL;
use PDL::Graphics::PLplot;

my $pl = PDL::Graphics::PLplot->new (DEV => "pbm", FILE => "test.pbm");
my $x  = sequence(10);
my $y  = $x**2;
$pl->xyplot($x, $y);
$pl->close;

Attachment: test.pbm.gz
Description: GNU Zip compressed data

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Reply via email to