Path: news.mathworks.com!newsfeed-00.mathworks.com!oleane.net!oleane!news.ecp.fr!aioe.org!not-for-mail
From: Geico Caveman <spammers-go-here@spam.invalid>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Hardcopy is black - help
Date: Wed, 29 Aug 2007 19:45:16 -0700
Organization: Dinosaur Fedex
Lines: 39
Message-ID: <fb5b00$n2b$1@aioe.org>
References: <faghn0$tlv$1@aioe.org> <46CC1CF9.4050304@mathworks.com> <faian9$n9r$1@news.asu.edu> <fajvkc$r25$1@fred.mathworks.com>
NNTP-Posting-Host: jxc0V9gZro3LX/plZqqeHw.user.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Complaints-To: abuse@aioe.org
User-Agent: KNode/0.10.4
Xref: news.mathworks.com comp.soft-sys.matlab:426207



Rich Quist wrote:

> 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

As a matter of record, I found that zbuffer worked for me. There appears to
be some loss of resolution though.

I did not use a command line switch. Instead, I use a set() on gcf for this.