Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Hardcopy is black - help
Date: Thu, 23 Aug 2007 12:47:08 +0000 (UTC)
Organization: The MathWorks
Lines: 33
Message-ID: <fajvkc$r25$1@fred.mathworks.com>
References: <faghn0$tlv$1@aioe.org> <46CC1CF9.4050304@mathworks.com> <faian9$n9r$1@news.asu.edu>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187873228 27717 172.30.248.38 (23 Aug 2007 12:47:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 23 Aug 2007 12:47:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1034498
Xref: news.mathworks.com comp.soft-sys.matlab:425186



Geico Caveman <spammers_go_here@spam.invalid> wrote in
message <faian9$n9r$1@news.asu.edu>...
> Richard Quist wrote:
> 
> > Geico Caveman wrote:
> >> Hello
> >> 
> >>         I have had this problem before with this script
that plots some
> >>         3D data
> >> (surf). The figure window shows a nice plot. The
hardcopy (pdf and png)
> >> simply consist of a solid black rectangle where the
plot ought to be.
> >> 
> > 
> > This usually indicates a problem with the opengl driver.
Try starting
> > MATLAB with the   -softwareopengl   switch
> 
> Thanks for your response.
> 
> I tried this switch. No good. The hardcopy o/p is black as
before.

You can try "forcing" print to use a different renderer,
which may help. Try adding '-zbuffer' to the print command
(the other choice for the png format would be '-opengl', but
that's probably what's being used currently).

The other thing to look at is whether there's an update for
your video driver