diff --git a/TimeSeries.pm b/TimeSeries.pm index 691b6c1..d2a8070 100644 --- a/TimeSeries.pm +++ b/TimeSeries.pm @@ -450,9 +450,10 @@ sub plot { if ($self->{gsresolution} != $self->{finalresolution}) { $pipe .= "pnmscale " . ($self->{finalresolution} / $self->{gsresolution}) . " |"; } - $pipe .= - "pnmflip -cw |" . - "pnmcrop 2> /dev/null |"; + $pipe .= "pnmflip -cw |"; + if ($self->{crop}) { + $pipe .= "pnmcrop 2> /dev/null |"; + } } if ($self->{output_format} eq "png") {