Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Parts of axis disappearing in print/print preview?
Date: Tue, 19 Aug 2008 15:22:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 29
Message-ID: <g8eoeq$guf$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1219159322 17359 172.30.248.35 (19 Aug 2008 15:22:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 19 Aug 2008 15:22:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1215962
Xref: news.mathworks.com comp.soft-sys.matlab:486251



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!