|
Hi there,
I'm trying to do some printing, and this sample code
generates the problem I'm having:
% problem
rectangle('Position',[0 0 1 1],'FaceColor',[1 1 1]);
rectangle('Position',[0.1 0.1 0.8 0.8],'FaceColor',[0 0
0],'EdgeColor',[0 0 0]);
rectangle('Position',[0.2 0.2 0.6 0.6],'FaceColor',[1 1
1],'EdgeColor',[1 1 1]);
% no problem
rectangle('Position',[0 0 1 1],'FaceColor',[1 1 1]);
rectangle('Position',[0.1 0.1 0.8 0.8],'FaceColor',[0 0
0],'EdgeColor',[0 0 0]);
rectangle('Position',[0.2 0.2 0.6 0.6],'FaceColor',[0.99
0.99 0.99],'EdgeColor',[1 1 1]);
The problem rectangles will not have a center rectangle (the
third one) when I go to print/print preview. The ones with
no problem (where I've altered the FaceColor by a smidge)
are just fine. I'm using MATLAB R12.1, and I'm assuming this
is documented, but is there a workaround? It seems to be
somehow related to the renderer, but I'm not quite sure what
the best method of fixing it would be other than the hack
I'm doing now.
Thanks!
|