[Graph-dev] png options?

Emile Aben emile at caida.org
Thu May 24 08:30:48 PDT 2007


Hi Daniel,

Thanks for the suggestion, I'm thinking of taking that a step
further and allow options for all terminal types that are 
supported (why treat eps and png different from the others ?)

You can expect syntax like:
{'output type' => 'png size 1000,600'} 
to work in a future release of Chart::Graph::Gnuplot (although
it might be a little while before we release a new version).

Btw. there is a 'size' option already in Chart::Graph::Gnuplot , did
you try that/had problems with it?

best regards,
Emile


On Thu, May 03, 2007 at 03:25:06PM -0400, Daniel_Boughton at ao.uscourts.gov wrote:
> 
>    I was wondering if you would consider adding options to the png
>    terminal type.  I added it to my local copy (sans documentation) as
>    follows:
>    361c361
>    <           if (!($value =~ /^(pbm|gif|tgif|svg|(eps|png)(:? .*)?)$/))
>    {
>    ---
>    >           if (!($value =~ /^(pbm|gif|tgif|png|svg|eps(:? .*)?)$/)) {
>    391,392c391
>    <     } elsif ($output_type =~ /^png( .*)?$/) {
>    <       my $options = $1 || "small";
>    ---
>    >     } elsif ($output_type eq "png") {
>    397c396
>    <       print $handle "set terminal png $options\n";
>    ---
>    >       print $handle "set terminal png small\n";
>    450c449
>    <     } elsif (defined $output_file && $output_type =~
>    /^(pbm|(eps|png)(?: .*)?|tgif)$/) {
>    ---
>    >     } elsif (defined $output_file && $output_type =~ /^(pbm|eps(?:
>    .*)?|png|tgif)$/) {
>    The advantage is being able to set the absolute size by setting the
>    output type to 'png size 1000,600' versus fiddling with ratios.
>    Thanks,
>    Daniel

> _______________________________________________
> Graph-dev mailing list
> Graph-dev at caida.org
> https://rommie.caida.org/mailman/listinfo/graph-dev



More information about the Graph-dev mailing list