[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53737] printing to svg gives error and no plo
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2 |
Date: |
Tue, 24 Apr 2018 13:45:35 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #14, bug #53737 (project octave):
It doesn't need to be provided by all terminals.
grep -Prn '\bfsize\b' *
plot/util/private/__gnuplot_print__.m:268: f = sprintf ('fname "%s"
fsize %d', opts.font, fontsize);
plot/util/private/__gnuplot_print__.m:273: f = sprintf ("fsize %d",
fontsize);
plot/util/private/__gnuplot_print__.m:324: f = sprintf ("fsize %d",
opts.fontsize);
And if you look at the code around lines 268 and 273
case "svg"
## FIXME: Why does svg format use round on the fontsize while
## other terminals don't?
if (! isempty (opts.font) && ! isempty (opts.fontsize))
fontsize = round (opts.fontsize * 0.75);
f = sprintf ('fname "%s" fsize %d', opts.font, fontsize);
elseif (! isempty (opts.font))
f = sprintf ('fname "%s"', opts.font);
elseif (! isempty (opts.fontsize))
fontsize = round (opts.fontsize * 0.75);
f = sprintf ("fsize %d", fontsize);
endif
So it may be that replacing fsize with fontscale just for the svg terminal is
the correct thing to do.
The other occurrence is for the Canvas terminal at line 324
case "canvas"
if (! isempty (opts.fontsize))
f = sprintf ("fsize %d", opts.fontsize);
endif
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53737>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot, gnuplot dumps core, (continued)
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot, gnuplot dumps core, Mike Miller, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot, gnuplot dumps core, Rik, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot, gnuplot dumps core, Mike Miller, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot, gnuplot dumps core, John W. Eaton, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot, gnuplot dumps core, John W. Eaton, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Mike Miller, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Mike Miller, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Rik, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Mike Miller, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, John W. Eaton, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2,
Rik <=
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Rik, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Francesco Potortì, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Rik, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Dan Sebald, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Dan Sebald, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Rik, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Dan Sebald, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Rik, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Dan Sebald, 2018/04/24
- [Octave-bug-tracker] [bug #53737] printing to svg gives error and no plot with gnuplot 5.2, Mike Miller, 2018/04/24