[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38323] printing image to svg uses same embedd
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6 |
Date: |
Thu, 12 May 2016 03:28:28 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
Update of bug #38323 (project octave):
Status: Confirmed => Patch Submitted
_______________________________________________________
Follow-up Comment #9:
As shown in this gnuplot bug report:
https://sourceforge.net/p/gnuplot/bugs/1135/
I made the following change in Octave:
diff --git a/scripts/plot/util/private/__gnuplot_draw_axes__.m
b/scripts/plot/util/private/__gnuplot_draw_axes__.m
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m
@@ -555,7 +555,7 @@ function __gnuplot_draw_axes__ (h, plot_
titlespec{data_idx} = "title \"\"";
usingclause{data_idx} = sprintf ("binary array=%dx%d scan=yx
origin=(%.15g,%.15g) dx=%.15g dy=%.15g using %s",
x_dim, y_dim, x_origin, y_origin, dx, dy, format);
- withclause{data_idx} = sprintf ("with %s;", imagetype);
+ withclause{data_idx} = sprintf ("with %s failsafe;", imagetype);
case "line"
if (strcmp (obj.linestyle, "none")
In short, adding the keyword "failsafe" to the "with image" command.
This created a much larger svg file without the embedded png file. The svg
image loads fine in eog and firefox.
No idea if this change is safe for all terminals or if logic needs to be added
to apply it only to the svg terminal.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38323>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6,
Mike Miller <=
- [Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6, Rik, 2016/05/12
- [Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6, Dan Sebald, 2016/05/12
- [Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6, Mike Miller, 2016/05/12
- [Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6, Dan Sebald, 2016/05/12
- [Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6, Mike Miller, 2016/05/12
- [Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6, Dan Sebald, 2016/05/23
- [Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6, Dan Sebald, 2016/05/27
- [Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6, Dan Sebald, 2016/05/27