From tot at ngs.ru Mon Apr 21 19:55:28 2014 From: tot at ngs.ru (tot) Date: Tue, 22 Apr 2014 09:55:28 +0700 Subject: [Graph-dev] Image size in Chart-Graph-3.2 Message-ID: <25447586.vBxBiJMuak@tot.nsk.su> 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);