Home > Archive > PERL Beginners > January 2006 > Plotting a 2D chart
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Plotting a 2D chart
|
|
| Aditi Gupta 2006-01-10, 4:02 am |
| Hello Everybody,
I have a perl code which produces a string of numbers as output. I want to
plot this data on an x-y axes plane.
I'm using ActiveState Perl 5.8.6 on a Windows XP platform. Since I don't
have direct internet connection, I'm unable to use the online package
repositories for installing package GD. The GD package from CPAN consists of
files having .xs extensions and hence require compilation, which I don't
know how to do.
I have been suggested to use gnuplot (windows version) but I don't know how
to link it to the perl code. Is there a way to do that?
Thanks in advance,
Best Wishes and Happy New Year,
Aditi
| |
| S Khadar 2006-01-10, 4:02 am |
| hi aditi - there are around 50 sample plots - including codes available at
GD::Graph ! you can use this - I am working on a linux platform and i
strongly recomends u to use the same. To install GD::Graph u have to install
gd-lib and GD, I can guide you installation matter - if ur using a linux
machine - for windows - ou have to get help from others .
If u need the code to perl plot xy - i can provide or you can get from the
GD::Graph Samples drectory.
Happy PERL !!! Happy New Year
C heers
On 12/30/05, Aditi Gupta <aditi9783@gmail.com> wrote:
>
> Hello Everybody,
>
> I have a perl code which produces a string of numbers as output. I want to
> plot this data on an x-y axes plane.
> I'm using ActiveState Perl 5.8.6 on a Windows XP platform. Since I don't
> have direct internet connection, I'm unable to use the online package
> repositories for installing package GD. The GD package from CPAN consists
> of
> files having .xs extensions and hence require compilation, which I don't
> know how to do.
> I have been suggested to use gnuplot (windows version) but I don't know
> how
> to link it to the perl code. Is there a way to do that?
>
> Thanks in advance,
>
> Best Wishes and Happy New Year,
>
> Aditi
>
>
| |
| Zentara 2006-01-10, 4:02 am |
| On Fri, 30 Dec 2005 12:11:07 +0530, aditi9783@gmail.com (Aditi Gupta)
wrote:
>Hello Everybody,
>
>I have a perl code which produces a string of numbers as output. I want to
>plot this data on an x-y axes plane.
>I'm using ActiveState Perl 5.8.6 on a Windows XP platform. Since I don't
>have direct internet connection, I'm unable to use the online package
>repositories for installing package GD. The GD package from CPAN consists of
>files having .xs extensions and hence require compilation, which I don't
>know how to do.
I use linux, but
I believe you can get pre-compiled binary ppm files for GD
>I have been suggested to use gnuplot (windows version) but I don't know how
>to link it to the perl code. Is there a way to do that?
You can also use Tk ( which comes with ActiveState ), run the "widget"
program, and look at the Canvas Section for "Simple 2-D plot".
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
|
|
|
|
|