[Graph-dev] png options?
Steinar Midtskogen
steinar at latinitas.org
Fri Apr 13 04:42:22 PDT 2012
Hello,
First, sorry for replying to a nearly 5 years old message, which I
found in the archive. It is also the last message to receive a reply,
so perhaps Chart::Graph::Gnuplot development is dead?
I wish to use svg, but "output type" doesn't accept arguments. Only
eps does. I would like to set the svg size. The "size" option in
Chart::Graph::Gnuplot will only work to make the size smaller, not
bigger, which will cause the graph to become clipped.
Any chance that there will be an update?
-Steinar
[Emile Aben]
> 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
More information about the Graph-dev
mailing list