Click here to get back home

use perl to draw Venn Diagram

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
use perl to draw Venn Diagram Ela 04-27-2008
Posted by Ela on April 27, 2008, 7:59 pm
Please log in for more thread options
Perl has a GD library. But its circle, arc, line and alike seem to have
limited applications.

I just want to plot 2 circles, one with solid line and another with dotted
line, overlapping with each other according to an input overlapping
parameter (I guess this feature may be achieved by locating the 2 centers
accordingly). Finally write some texts in the centers of the 2 circles. Any
suggestions? Matlab can achieve that easily and is Perl really unable to do
that?





Posted by Gunnar Hjalmarsson on April 27, 2008, 8:51 pm
Please log in for more thread options
Ela wrote:
> Perl has a GD library.

No. Perl has an interface to the GD Graphics Library.

http://search.cpan.org/perldoc?GD

> But its circle, arc, line and alike seem to have limited applications.

How did you come to that conclusion?

> I just want to plot 2 circles, one with solid line and another with dotted
> line, overlapping with each other according to an input overlapping
> parameter (I guess this feature may be achieved by locating the 2 centers
> accordingly). Finally write some texts in the centers of the 2 circles.

Interesting. Have you written any code yet?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Posted by Ela on April 28, 2008, 12:21 am
Please log in for more thread options
>> I just want to plot 2 circles, one with solid line and another with
>> dotted line, overlapping with each other according to an input
>> overlapping parameter (I guess this feature may be achieved by locating
>> the 2 centers accordingly). Finally write some texts in the centers of
>> the 2 circles.
>
> Interesting. Have you written any code yet?
>
> --
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl

In Matlab, I can specify parameters like: LineWidth, LineStyle and so. I'm
not asking others to post their codes but would like to know whether such
parameters exist or not. Because after reading

Graphics_Programming_with_Perl by Martien_Verbruggen-Manning

I did not find any clues.



Posted by Gunnar Hjalmarsson on April 28, 2008, 12:48 am
Please log in for more thread options
Ela wrote:
> Gunnar Hjalmarsson wrote:
>> Ela wrote:
>>> I just want to plot 2 circles, one with solid line and another with
>>> dotted line, overlapping with each other according to an input
>>> overlapping parameter (I guess this feature may be achieved by
>>> locating the 2 centers accordingly). Finally write some texts in the
>>> centers of the 2 circles.
>>
>> Interesting. Have you written any code yet?
>
> In Matlab, I can specify parameters like: LineWidth, LineStyle and so. I'm
> not asking others to post their codes but would like to know whether such
> parameters exist or not.

Then read the docs for GD.pm (link provided in my previous message).

> Because after reading
>
> Graphics_Programming_with_Perl by Martien_Verbruggen-Manning
>
> I did not find any clues.

But you didn't read the GD.pm docs, right?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Posted by Ela on April 28, 2008, 10:45 am
Please log in for more thread options
> Then read the docs for GD.pm (link provided in my previous message).
>
>> Because after reading
>>
>> Graphics_Programming_with_Perl by Martien_Verbruggen-Manning
>>
>> I did not find any clues.
>
> But you didn't read the GD.pm docs, right?
>
> --
Thanks a lot, Gunnar Hjalmarsson. But the doc and google search don't tell
me how to use gdstyled and gdbrushed to draw a circle with a dashed/dotted
line.




Similar ThreadsPosted
How to draw a tree/graph of a web site? September 11, 2007, 2:59 pm
DRaw a blank on combinging two arrays June 18, 2008, 3:16 pm
PERL to mean what 'perldoc perl' says is wrong? (was: Re: perl should be improved and perl6) April 14, 2008, 11:37 pm
FAQ 3.0: What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? October 31, 2004, 12:03 pm
FAQ 3.0 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? February 2, 2005, 12:03 pm
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? March 28, 2005, 12:03 am
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? June 12, 2005, 11:03 am
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? August 29, 2005, 10:03 pm
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? October 28, 2005, 10:03 pm
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? December 25, 2005, 5:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap