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) .