[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52196] camva/camtarget/camzoom: resizing figu
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #52196] camva/camtarget/camzoom: resizing figure changes axes size |
Date: |
Sun, 29 Oct 2017 12:17:45 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0 |
Follow-up Comment #3, bug #52196 (project octave):
I have written the attached converter (see attached zip) that takes an svg
generated by gl2ps and can write pdf, png, ppm, bmp and jpg outputs.
The converter is currently in the form of a command line Qt based program that
you can compile as follows:
qmake qt-svg-convert.pro
make
After that, from Octave you can generate the figure you like and have it
converted as follows:
demo text 2
ch = findobj (gca, "type", "text");
set (ch, "fontname", "DejaVuSansMono");
infile = "toto.svg";
outfile = "toto.pdf"
fmt = "pdf";
dpi = get (0, "screenpixelsperinch");
print (infile);
cmd = sprintf ("./qt-svg-convert %s %s %3.2f %s",
infile, fmt, dpi, outfile);
system (cmd)
Adding Rik to this report recipients since we have discussed the svg
conversion before.
The only fancy addition of this converter is that it tries to merge contiguous
polygons with the same color to avoid anti-aliasing artifacts. This works well
for 2D figures (see "demo hold 6" converted to pdf, it's beautiful :-)) but
not for 3D figure where depth sorting limits the extent to which the
reconstruction is possible.
(file #42289)
_______________________________________________________
Additional Item Attachment:
File name: standalone.zip Size:4 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52196>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/