FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Default to embedding generated images rather than creating and linkin… · gnuplot/gnuplot-old@ff81ae3 · GitHub

Repository navigation

Commit ff81ae3

Browse files
sfeam
committed
Default to embedding generated images rather than creating and linking to separate *.png files
1 parent ff270ad commit ff81ae3

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

‎ChangeLog‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
UNDEFINED flag, which is almost certainly the wrong thing to do.
1414
Bug #1911
1515

16+
* term/svg.trm: Default to embedding generated images rather than
17+
creating and linking to separate *.png files.
18+
Bug #1801
19+
1620
2017-02-17 Ethan A Merritt <merritt@u.washington.edu>
1721

1822
* term/canvas.trm term/js/gnuplot_mouse.js term/js/gnuplot_svg.js

‎term/svg.trm‎

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Hello, Emacs, this is -*-C-*-
2-
* $Id: svg.trm,v 1.186 2017-02-17 20:19:25 sfeam Exp $
2+
* $Id: svg.trm,v 1.187 2017-02-20 19:38:03 sfeam Exp $
33
*/
44

55
/*------------------------------------------------------------------------------------------------------------------------------------
@@ -1811,7 +1811,8 @@ SVG_image (unsigned m, unsigned n, coordval *image, gpiPoint *corner, t_imagecol
18111811
PREC, X(corner[0].x), PREC, Y(corner[0].y),
18121812
PREC, X(corner[1].x) - X(corner[0].x), PREC, Y(corner[1].y) - Y(corner[0].y));
18131813

1814-
if (SVG_standalone || SVG_domterm) {
1814+
/* Feb 2017 - always embed images */
1815+
if (TRUE || SVG_standalone || SVG_domterm) {
18151816
/* Embed the PNG file in SVG by converting to base64 */
18161817
fprintf(gpoutfile, "xlink:href='data:image/png;base64,");
18171818
if (write_png_base64_image(m, n, image, color_mode, gpoutfile))
@@ -2196,11 +2197,9 @@ START_HELP(svg)
21962197
"",
21972198
" Syntax:",
21982199
" set terminal svg {size <x>,<y> {|fixed|dynamic}}",
2199-
" {{no}enhanced}",
2200-
" {fname \"<font>\"} {fsize <fontsize>}",
22012200
" {mouse} {standalone | jsdir <dirname>}",
22022201
" {name <plotname>}",
2203-
" {font \"<fontname>{,<fontsize>}\"}",
2202+
" {font \"<fontname>{,<fontsize>}\"} {{no}enhanced}",
22042203
" {rounded|butt|square} {solid|dashed} {linewidth <lw>}",
22052204
" {background <rgb_color>}",
22062205
"",
@@ -2215,10 +2214,8 @@ START_HELP(svg)
22152214
" <fontsize> is the font size (in points, default 12). SVG viewing",
22162215
" programs may substitute other fonts when the file is displayed.",
22172216
"",
2218-
" The svg terminal supports an enhanced text mode, which allows font",
2219-
" and other formatting commands to be embedded in labels and other text",
2220-
" strings. The enhanced text mode syntax is shared with other gnuplot",
2221-
" terminal types. See `enhanced` for more details.",
2217+
" The enhanced text mode syntax is shared with other gnuplot terminal types.",
2218+
" See `enhanced` for more details.",
22222219
"",
22232220
" The `mouse` option tells gnuplot to add support for mouse tracking and for",
22242221
" toggling individual plots on/off by clicking on the corresponding key entry.",
@@ -2227,15 +2224,13 @@ START_HELP(svg)
22272224
" You can change this by using the `jsdir` option to specify either a",
22282225
" different local directory or a general URL. The latter is usually",
22292226
" appropriate if you are embedding the svg into a web page.",
2230-
" Alternatively, the `standalone` option embeds the mousing code and any",
2231-
" images in the svg document itself rather than linking to an external",
2232-
" resource.",
2227+
" Alternatively, the `standalone` option embeds the mousing code in the svg",
2228+
" document itself rather than linking to an external resource.",
22332229
"",
22342230
" When an SVG file will be used in conjunction with external files,",
2235-
" e.g. if it embeds a PNG image or is referenced by javascript code",
2236-
" in a web page or embedding document, then a unique name is required",
2237-
" to avoid potential conflicting references to other SVG plots.",
2238-
" Use the `name` option to ensure uniqueness.",
2231+
" e.g. if it is referenced by javascript code in a web page or parent document,",
2232+
" then a unique name is required to avoid potential conflicting references",
2233+
" to other SVG plots. Use the `name` option to ensure uniqueness.",
22392234
""
22402235
END_HELP(svg)
22412236

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL