05-07-2011
There are lots of charting/graphing modules for Perl. A popular module is
GD::Graph
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to plot some files with the extension .plot, which I believe is a UNIX Plot(5) extension. Is UNIX Plot(5) something that I must download, or is it already built into UNIX? If it is already built in, is there a trick to actually plotting the files? Is there anything online that I could... (0 Replies)
Discussion started by: evenkolder
0 Replies
2. Shell Programming and Scripting
Hi,
I would like to make a lot of plots with for instance xmgrace and don't know how.
I have a directory with about 500 data files with the same structure and I want to plot always the same columns. I don't know how to call xmgrace to produce a, say, gif plot of the columns 3 and 4 of... (2 Replies)
Discussion started by: pau
2 Replies
3. Programming
To successfully export a perl GD::Graph object to a graphics file (e.g. a .png file), do you do the following ?
# Set graph data
$graph->set(....);
$graph->plot(\@graph_data);
open(IMG,'>file.png') or die $!;
binmode IMG;
print IMG $graph->png;
close IMG;
Reason Im asking is... (1 Reply)
Discussion started by: JamesGoh
1 Replies
4. UNIX for Dummies Questions & Answers
I have a set of data that looks similar to the following in UNIX:
0.12_0.008_fall_ff.out:bisect return: 0.08056640625
0.12_0.04_fall_ff.out:bisect return: 0.07470703125
0.12_0.12_fall_ff.out:bisect return: 0.06298828125
0.12_0.24_fall_ff.out:bisect return: 0.05126953125
Previously I have... (4 Replies)
Discussion started by: EDALBNUG
4 Replies
5. Shell Programming and Scripting
How can I plot a straight horizontal line using perl in unix solaris environment?
Please suggest.
Pooja (2 Replies)
Discussion started by: wadhwa.pooja
2 Replies
6. UNIX for Dummies Questions & Answers
I have attached a txt file, what I would like to be able to do is:
1. Extract Data from Columns labeled E/N and Ko into a new file
2. Then in the new file I would like to be able to plot E/N on the X axis and Ko on the y axis.
3. Lastly I would like to be able to extract multiple data sets and... (6 Replies)
Discussion started by: gingburg
6 Replies
7. Shell Programming and Scripting
Hi Everyone,
Would like to know some hints where should I look for, if I want to do the perl with excel graph staff, i read some people say can use GD:Graph, would please give me some guide on where should I search for, which keyword should I put into google to search.
Thanks (1 Reply)
Discussion started by: jimmy_y
1 Replies
8. UNIX for Dummies Questions & Answers
When I plot a set of data in gnuplot from a file like:
1 5
2 3
4 6
5 1
using
plot "file.txt" w boxes
I would expect that at the x value of 3 it will go to a value of 0 for y... but it doesn't. Is there a way to fix that, or do I actually have to type by hand an... (1 Reply)
Discussion started by: cosmologist
1 Replies
9. Slackware
I am making mathematical graphics in grace, all is working, but my curves are not totally smooth,..i have equal problem in gnuplot,...
can i do anything??:confused: (4 Replies)
Discussion started by: gitac
4 Replies
LEARN ABOUT DEBIAN
graph::writer::xml
Graph::Writer::XML(3pm) User Contributed Perl Documentation Graph::Writer::XML(3pm)
NAME
Graph::Writer::XML - write out directed graph as XML
SYNOPSIS
use Graph;
use Graph::Writer::XML;
$graph = Graph->new();
# add edges and nodes to the graph
$writer = Graph::Writer::XML->new();
$writer->write_graph($graph, 'mygraph.xml');
DESCRIPTION
Graph::Writer::XML is a class for writing out a directed graph in a simple XML format. The graph must be an instance of the Graph class,
which is actually a set of classes developed by Jarkko Hietaniemi.
The XML format is designed to support the Graph classes: it can be used to represent a single graph with a collection of nodes, and edges
between those nodes. The graph, nodes, and edges can all have attributes specified, where an attribute is a (name,value) pair, with the
value being scalar.
METHODS
new()
Constructor - generate a new writer instance.
$writer = Graph::Writer::XML->new();
This doesn't take any arguments.
write_graph()
Write a specific graph to a named file:
$writer->write_graph($graph, $file);
The $file argument can either be a filename, or a filehandle for a previously opened file.
KNOWN BUGS
Attribute values must be scalar. If they're not, well, you're on your own.
SEE ALSO
XML::Writer
The perl module used to actually write out the XML. It handles entities etc.
Graph
Jarkko Hietaniemi's modules for representing directed graphs, available from CPAN under modules/by-module/Graph/
Algorithms in Perl
The O'Reilly book which has a chapter on directed graphs, which is based around Jarkko's modules.
Graph::Writer
The base-class for Graph::Writer::XML
AUTHOR
Neil Bowers <neil@bowers.com>
COPYRIGHT
Copyright (c) 2001-2012, Neil Bowers. All rights reserved. Copyright (c) 2001, Canon Research Centre Europe. All rights reserved.
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-14 Graph::Writer::XML(3pm)