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 29.984.147 Times

GD::Graph 1.4308

  Date Added: October 14, 2010  |  Visits: 1.265

GD::Graph

Report Broken Link
Printer Friendly Version


Product Homepage
Download (86 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
GD::GRAPH RELATED
Utilities  -  UDAT 1.4.1
UDAT is a data format, offering a generic basis for data storage and transmission, while being both easily readable by humans and easily readable by machines. It is comparable to formats like XML or YAML, but due to simplicity it is much more easy...
10.24 KB  
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  
Libraries  -  Graidle 0.4
Graidle (Graph aid), is a project that is proposed to create an application web for the realization of graph; it comes divided in four parts: Graidle Fx proposed like didactic instrument for the visualization of diagrams of function to one...
12.29 KB  
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  
Libraries  -  libpng 1.2.19 / 1.2.20 Beta 1
libpng (PNG library) is a collection of routines used to create and manipulate PNG format graphics files. The PNG file format was designed as a replacement for GIF and, to a lesser extent, TIFF, with many improvements and extensions. Whats New...
 
Libraries  -  GD::Graph::Thermometer 0.05
GD::Graph::Thermometer is a Perl module to generate progress graph on the fly. SYNOPSIS use GD::Graph::Thermometer; my $result = GD::Graph::Thermometer->new({ image_path => /path/to/image.png, type => png, goal => 80000, current => 20000,...
7.17 KB  
Libraries  -  GD::Graph::Polar 0.15
GD::Graph::Polar is a Perl module to make polar graph using GD package. SYNOPSIS use GD::Graph::Polar; my $obj=GD::Graph::Polar->new(size=>480, radius=>100); $obj->addPoint (50=>25); $obj->addPoint_rad (50=>3.1415); $obj->addGeoPoint...
47.1 KB  
Libraries  -  CGI::Ex::Conf 2.06
CGI::Ex::Conf is a Perl module with Conf Reader/Writer for many different data format types. SYNOPSIS use CGI::Ex::Conf qw(conf_read conf_write); my $hash = conf_read("/tmp/foo.yaml"); conf_write("/tmp/foo.yaml", {key1 => $val1, key2 =>...
215.04 KB  
Libraries  -  MP3::Tag::ID3v2-Data 0.9708
MP3::Tag::ID3v2-Data can get_frame() data format and supported frames. SYNOPSIS $mp3 = MP3::Tag->new($filename); $mp3->get_tags(); $id3v2 = $mp3->{ID3v2} if exists $mp3->{id3v2}; ($info, $long) = $id3v2->get_frame($id); # or ($info,...
174.08 KB  
Modules  -  Sanitizable 7.x-1.x-de
The Sanitize module allows administrators to configure a text format to be applied to formatted text before storage. This is useful to ensure clean and valid data in the database.Configuring the sanitizable module 1. Create/determine a text format...
10 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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