Blame contrib/whodo/GIFgraph/GIFgraph/samples/sample62.pl

Packit 667938
use GIFgraph::mixed;
Packit 667938

Packit 667938
print STDERR "Processing sample 6-2\n";
Packit 667938

Packit 667938
@data = ( 
Packit 667938
    ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
Packit 667938
    [    9,    8,    9,  8.4,  7.1,  7.5,    8,     3,     3],
Packit 667938
    [   .4,   .3,    1,    1,   .3,  1.5,    2,     1,     0],
Packit 667938
);
Packit 667938

Packit 667938
$my_graph = new GIFgraph::mixed();
Packit 667938

Packit 667938
$my_graph->set( 
Packit 667938
	x_label => 'X Label',
Packit 667938
	y1_label => 'Y1 label',
Packit 667938
	y2_label => 'Y2 label',
Packit 667938
	title => 'A Mixed Type Graph with Two Axes',
Packit 667938
	two_axes => 1,
Packit 667938
	y1_max_value => 10,
Packit 667938
	y2_max_value => 2.5,
Packit 667938
	y_min_value => 0,
Packit 667938
	y_tick_number => 5,
Packit 667938
	long_ticks => 1,
Packit 667938
	x_ticks => 0,
Packit 667938
	legend_marker_width => 24,
Packit 667938
	line_width => 5,
Packit 667938

Packit 667938
	bar_spacing => 4,
Packit 667938

Packit 667938
	types => [ qw( bars lines ) ],
Packit 667938
);
Packit 667938

Packit 667938
$my_graph->set_legend( qw( one two three four five six ) );
Packit 667938

Packit 667938
$my_graph->plot_to_gif( "sample62.gif", \@data );
Packit 667938

Packit 667938
exit;
Packit 667938