[Graph-dev] Image size in Chart-Graph-3.2

tot tot at ngs.ru
Mon Apr 21 19:55:28 PDT 2014


Hello!

I have a problem with perl module Chart::Graph::Gnuplot.
Can you tell me how to change image size?
I tried to use 'size' => [1,0.5], but it's only scales the graph in the image.

And if to try imagesize, perl says:
unknown option: imagesize at /usr/perl5/site_perl/5.8.4/Chart/Graph/Gnuplot.pm line 147

Is it possible to change png image size?

use Chart::Graph::Gnuplot qw(gnuplot);

%options=( 'title' => 'DNS Latency',
	           'x-axis label' => 'Date',
	           'y-axis label' => 'Latancy ms',
	           'output type' => 'png',
	           'output file' => 'gnuplot.png',
#	           'imagesize' => [1,0.5],
	           'size' => [1,0.5]
                 );
$plot=[{'title' => 'close','type' => 'matrix','style' => 'lines'}, [@A] ];
          
gnuplot(\%options, $plot);



More information about the Graph-dev mailing list