I am making some plots in Perl using GD::Graph and some of the data is outside the area I would like to display, but instead of being truncated off the chart outside the graphing area, it is being drawn over the title, legend, and axis labels. Does anyone know how to stop this from happening?
...
I am writing a program that takes in an input file from the user. The file has bunch of numbers in it and I will read the numbers in the file and create a plot based on those numbers using GD::Graph.
The first line of the file is X axis, second line of the file is Y values corresponding to X axis and third, fourth, ..., etc For example...
Hi,
I am creating graphs using GD::Graph::lines. For option set, I have to write fixed values for options e.g. x_label => "label" as per below code:
my $mygraph = GD::Graph::lines->new($x, $y);
$mygraph->set(
x_label => 'label1',
y_label => 'label2',
title => 'title',
line_types => [1, 1, 1, 1],
line...
I am writting a Perl script to create pie graph using GD::Graph::pie with these arrays:
@Array1 = ("A", "B", "C", "D");
$array2 = [
['upto 100 values'],
['upto 100 values'],
['upto 100 values'],
['upto 100 values']
];
As per my understanding to get this done, I have to create an array with the references o...
I have an array with a few elements:
MSN = 34.3433423432434%
Chrome = 12.4343434353534%
Gtalk = 32.23233543543532%
...
And I'm passing this array as y-axis labels to use with a module called GD::Graph. The problem I am facing right now, is that the number are so big on the graph that they overlap with the adjacent entry...
I'm using the GD::bars module in Perl v 5.8, but I can't seem to get the font size on my graphs x and y labels and values to change. Here's the relevant code I am using:
use GD::Graph::bars3d;
use GD::Text;
$my_graph->set_title_font(gdMediumBoldFont, 15);
$my_graph->set_x_label_font(gdMediumBoldFont, 15);
$my_graph->set_y_label_font(...