Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 35.196.268 Times

GD::Graph 1.4308

  Date Added: October 14, 2010  |  Visits: 1.466

GD::Graph

Report Broken Link
Printer Friendly Version


Product Homepage
Download (95 downloads)



GD::Graph is a graph plotting module for Perl 5. SYNOPSIS use GD::Graph::moduleName; GD::Graph is a perl5 module to create charts using the GD module. The following classes for graphs with axes are defined: GD::Graph::lines Create a line chart. GD::Graph::bars and GD::Graph::hbars Create a bar chart with vertical or horizontal bars. GD::Graph::points Create an chart, displaying the data as points. GD::Graph::linespoints Combination of lines and points. GD::Graph::area Create a graph, representing the data as areas under a line. GD::Graph::mixed Create a mixed type graph, any combination of the above. At the moment this is fairly limited. Some of the options that can be used with some of the individual graph types wont work very well. Bar graphs drawn after lines or points graphs may obscure the earlier data, and specifying bar_width will not produce the results you probably expected. Additional types: GD::Graph::pie Create a pie chart. USAGE: Fill an array of arrays with the x values and the values of the data sets. Make sure that every array is the same size, otherwise GD::Graph will complain and refuse to compile the graph. @data = ( ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"], [ 1, 2, 5, 6, 3, 1.5, 1, 3, 4], [ sort { $a <=> $b } (1, 2, 5, 6, 3, 1.5, 1, 3, 4) ] ); If you dont have a value for a point in a certain dataset, you can use undef, and the point will be skipped. Create a new GD::Graph object by calling the new method on the graph type you want to create (chart is bars, hbars, lines, points, linespoints, mixed or pie). my $graph = GD::Graph::chart->new(400, 300); Set the graph options. $graph->set( x_label => X Label, y_label => Y label, title => Some simple graph, y_max_value => 8, y_tick_number => 8, y_label_skip => 2 ) or die $graph->error; and plot the graph. my $gd = $graph->plot(@data) or die $graph->error; Then do whatever your current version of GD allows you to do to save the file. For versions of GD older than 1.19 (or more recent than 2.15), youd do something like: open(IMG, >file.gif) or die $!; binmode IMG; print IMG $gd->gif; close IMG; and for newer versions (1.20 and up) youd write open(IMG, >file.png) or die $!; binmode IMG; print IMG $gd->png; or open(IMG, >file.gd2) or die $!; binmode IMG; print IMG $gd->gd2; Then theres also of course the possibility of using a shorter version (for each of the export functions that GD supports): print IMG $graph->plot(@data)->gif; print IMG $graph->plot(@data)->png; print IMG $graph->plot(@data)->gd; print IMG $graph->plot(@data)->gd2; If you want to write something that doesnt require your code to know whether to use gif or png, you could do something like: if ($gd->can(png)) { # blabla } or you can use the convenience method export_format: my $format = $graph->export_format; open(IMG, ">file.$format") or die $!; binmode IMG; print IMG $graph->plot(@data)->$format(); close IMG; or for CGI programs: use CGI qw(:standard); #... my $format = $graph->export_format; print header("image/$format"); binmode STDOUT; print $graph->plot(@data)->$format(); (the parentheses after $format are necessary, to help the compiler decide that you mean a method name there).

Requirements: No special requirements
Platforms: Linux
Keyword: Create Create A Data Format Gd Gdgraph Graph Graph Plotting Img Libraries Plot Print Programming
Users rating: 0/10

License: Freeware Size: 143.36 KB
USER REVIEWS
More Reviews or Write Review


GD::GRAPH RELATED
Libraries  -  Common Data Format 3.1
Common Data Format is a self-describing data abstraction for the storage and manipulation of multidimensional data in a platform- and discipline-independent fashion. It consists of a scientific data management package (known as the "CDF...
1.5 MB  
Games  -  Create A Mall for Mac OS 1.0
You are Kelly, a rising star in a mall development company. You become a world class mall developer by creating exciting malls with interesting stores. Upgrade the stores to attract more customers and earn more money. Create A Mall is the first...
26 MB  
Database Tools  -  PacketDB 0.01
PacketDB projects goal is to create a set of workflows that treat tcpdumps/packet captures as just another sort of data to be loaded into relational structures and manipulated using the well-established methods of relational databases. The real...
10.24 KB  
Utilities  -  Quick Reminders: Super fast way to create a reminder 1.3
*****FREE for a limited time***** Quick Reminder provides you a super fast and convenient way to create a reminder on your iPhone, this app will blow your mind on how it gets the job done:). With just a few taps, you can create your...
2.7 MB  
Shell & Desktop  -  Create CVSup 0.1.6
Create CVSup is a script that will create a cvsup server mirror for FreeBSD, NetBSD, and OpenBSD. Create CVSup script has been tested and is known to work under FreeBSD, NetBSD, and OpenBSD..
4.1 KB  
Desktop Utilities  -  Recursively create M3U playlists 1.1
Recursively create M3U playlists is a service menu which can create a file called playlist.m3u in each directories and sub directories. You can edit recursively_create_M3U_playlist.py to change the name of playlist.m3u To install, simply put...
1.02 KB  
Communication  -  Create Bus Data for Models with Root-Level Bus Inputs 1.0
A common task in Simulink is to test a certain component of a larger model. With large-scale modeling, such componentization is often accomplished through the use of model reference. These large models also often use bus signals to organize large...
10 KB  
Programming  -  g95
g95 projects goal is to create a free, open source Fortran 95 compiler. The code has been donated to the Free Software Foundation for inclusion in GCC, the Gnu Compiler Collection. G95 is still in a beta state. G95 can compile most fortran 90/95...
3.2 MB  
Code Management Tools  -  Domino Javadoc Generator 0.4
Domino Javadoc Generator project aims to create a documentation to the Lotus Notes API for Java in a standard format common in the Java comunity and accepted by the most IDEs for Java. The Lotus Notes API is delivered as a Java archive together...
389.12 KB  
Automation Tools  -  OpenSCADA Project 0.8.0(Atlantis)
The OpenSCADA project aims to create a full-featured and state-of-the-art SCADA (Supervisory Control and Data Acquisition) system to be used in industrial and civil engineering applications to control distributed systems from a master location....
 
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB