[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Need to plot



George Michel asked:
>
>I have a file that I need to parse for some data and
>display as a 2D x-y graph.  I know of pgperl for unix
>but can this be done with macperl?
>


easy, get the GD module, it works great (with macperl 5.1.3r2 on a 7600)

cheers

iain

----------------------------------------------
from the GD.pod:

>NAME
>
>GD.pm - Interface to Gd Graphics Library
>
>DESCRIPTION
>
>The gd Graphics Library
>
>The gd graphics library, written by Thomas Boutell of Cold Spring Harbor
>Labs (Boutell@netcom.com), is a package of C routines for creating,
>reading, writing, and manipulating GIF graphics files.  It provides
>graphics primitives for:
>
>	*	Reading and writing GIF files.
>
>	*	Drawing lines, rectangles, arcs, ellipses and text.
>
>	*	Flood fills.
>
>	*	Using arbitrary images as tiled patterns for filling shapes.
>
>	*	Using arbitrary images as paintbrushes.
>
>	*	Stamping a portion of one image onto another, optionally
>resizing it.
>
>	*	Simple text rendering.
>
>gd can be obtained at URL http://siva.cshl.org/gd/gd.html.  Directions for
>installing it, and full documentation are available from that site.
>
>The GD.pm interface
>
>GD.pm is a port of the gd library by Lincoln Stein
>(lstein@genome.wi.mit.edu).  It is similar to the original C library, but
>contains some modifications to take advantage of perl's object-oriented
>features.  It defines the following three classes:
>
>	GD::Image
>
>		An image class, which holds the image data and accepts
>graphic primitive method calls.
>
>	GD::Font
>
>		A font class, which holds static font information and used
>for text rendering.
>
>	GD::Polygon
>
>		A simple polygon object, used for storing lists of vertices
>prior to rendering a polygon into an image.



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch