[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: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6 |
Date: |
Fri, 27 May 2016 16:30:08 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 |
Follow-up Comment #16, bug #38323 (project octave):
I'm attaching my recommended solution to this. It adds an 'svgstandalone'
option. Also, if the user decides that the images should be kept separate.
Put the following code in some .m file and rerun. Take note of the gnuplot
behavior for creating the auxiliary file. I'm not quite happy with the way it
does that. (It creates a new file every time...and then if one relaunches
gnuplot, e.g., exits/restarts Octave the numbering starts from 1 again.)
However, I don't think there is anything we can do--such as delete existing
files--that would address gnuplot's internal workings.
img = repmat(linspace(0,1,300),300,1);
pts = rand(100,2)*300;
imshow (img);
hold on;
plot(pts(:,1),pts(:,2),'x');
mkdir('mydir');
print('test_aux.svg','-dsvg');
print('mydir/nondir_test_aux.svg','-dsvg');
print('test_emb.svg','-dsvgstandalone');
print('mydir/nondir_test_emb.svg','-dsvgstandalone');
ls -l
ls -l mydir
(file #37290)
_______________________________________________________
Additional Item Attachment:
File name: octave-gnuplot_svg-djs2016may27.patch Size:2 KB
_______________________________________________________
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, 2016/05/11
- [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 <=
- [Octave-bug-tracker] [bug #38323] printing image to svg uses same embedded png filename with gnuplot 4.6, Dan Sebald, 2016/05/27