I want to export figures with transparent shapes in Matlab to TeX. For the following code, the triangle will appear transparent in Matlab but will be solid blue when I generate the tex file using \input{triangle.pgf}
Matlab Code:
x = [ 1 -0.5 -0.5 1];
y = [0 0.86603 -0.86603 -2.4493e-016];
f = figure;
t = fill(x,y,'b');
alpha(t,0.05);
matfig2pgf('fignr',1,'filename','triangle.pgf','figwidth',14);