MATLAB: patches disappear in various circumstances when faceAlpha is not 1

I am using 64-bit matlab r2010a on Windows 7 (this may be relevant if this is an incomprehensible rendering error)

this is apparently a strange mistake that appears when the latex text interpreter

set(0, 'DefaultTextInterpreter', 'Latex');

this code will create a blue square with a black frame and a legend outside the axes

cla reset;
patch ([0.5 0.5 0.75 0.75 0.5], [0.5 0.75 0.75 0.5 0.5], 'b', 'FaceAlpha',1); 
xlim([0 1]); 
ylim([0 1])
legend ('blah', 'Location', 'bestOutside')

If I change the code so that the patch has an opaque alpha value,

cla reset;
patch ([0.5 0.5 0.75 0.75 0.5], [0.5 0.75 0.75 0.5 0.5], 'b', 'FaceAlpha',0.5); 
xlim([0 1]); 
ylim([0 1]);
legend ('blah', 'Location', 'bestOutside')

I get an empty black box instead of a full one, and the axes are correctly modified to place the legend outside, but without the legend.

, , " " . , "edit plot". ( get (gcf) get (gca) ) " "

. :

p = get(gca, 'Position');p(3) = p(3)/2;set (gca, 'Position', p)

.

opengl ( opengl, opengl) .

+3
1

rasman . , intepreter openGL. , -, MATLAB 359330

, , ( )

figureTextInterpreter 'latex' OpenGL MATLAB SEGV PostScript

OpenGL defaultTextInterpreter "" , PostScript PostScript MATLAB. ,

figure;
axes;
set(gcf,'defaultTextInterpreter','latex');
set(gcf,'renderer','openGL');
print figure.eps;

. MATLAB :

??? == > strcat .

== > tex > localCheckValidString at 138 strchk = strcat (str {:});

== > tex 111 [err] = localCheckValidString ();

defaultTextInterpreter "" OpenGL. , Interpreter "" .

+3

All Articles