|
#!/usr/bin/perl -w
my $temp = "temp.ps" ;
{
my $c = Chart::Gnuplot->new(
output => $temp ,
orient => 'portrait' ,
);
$c ->_setChart();
ok( $c ->{terminal} =~ /portrait$/);
}
{
my $c = Chart::Gnuplot->new(
output => $temp ,
imagesize => "0.9, 1.1" ,
);
$c ->_setChart();
ok( $c ->{terminal} =~ /size 9,7\.7$/);
}
{
my $c = Chart::Gnuplot->new(
output => $temp ,
orient => 'portrait' ,
imagesize => "0.9, 1.1" ,
);
$c ->_setChart();
ok( $c ->{terminal} =~ /portrait size 6\.3,11$/);
}
{
my $c = Chart::Gnuplot->new(
output => $temp ,
imagesize => "18 cm, 4 inches" ,
);
$c ->_setChart();
ok( $c ->{terminal} =~ /size 18 cm,4 inches$/);
}
|