[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62130] print with transparency, pdf ok but pd
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #62130] print with transparency, pdf ok but pdflatex fails |
Date: |
Wed, 2 Mar 2022 16:47:14 -0500 (EST) |
Update of bug #62130 (project octave):
Category: Plotting => Plotting with OpenGL
_______________________________________________________
Follow-up Comment #2:
Yes, as you discovered, the only tool chain that supports transparency for
vector outputs is based on conversion of svg. Using it to produce the raw pdf
as you propose in comment #1 could be envisaged. Another alternative, if you
can live with path rather than text, is to wait for the upcoming Octave 7
which will support the latex interpreter (using an external latex engine):
set (0, "defaultaxesticklabelinterpreter", "latex", "defaulttextinterpreter",
"latex")
x=linspace(-1,1,101);
s = 0.15;
y1 = exp(-(x/s).^2/2);
y2 = 0.75*exp(-((x-0.3)/0.15).^2/2);
hold on
h = fill([x 1 -1],[y1 0 0],'b', ...
'FaceAlpha',.3);
set(h,'EdgeAlpha',.3); # this line causes bug
fill([x 1 -1],[y2 0 0],'r', ...
'FaceAlpha',.3);
hold off
box on
title('print -dpdfcrop -svgconvert')
print -dpdfcrop -svgconvert curves
Figure attached.
(file #52950)
_______________________________________________________
Additional Item Attachment:
File name: curves.pdf Size:15 KB
<https://file.savannah.gnu.org/file/curves.pdf?file_id=52950>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62130>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/