Thread Subject: Parts of axis disappearing in print/print preview?

Subject: Parts of axis disappearing in print/print preview?

From: Ian Clarkson

Date: 19 Aug, 2008 15:22:02

Message: 1 of 1

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!

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com