Thread Subject: print image error

Subject: print image error

From: Ross Anderson

Date: 24 Feb, 2010 23:39:05

Message: 1 of 2

I'm saving some plots using export_fig (http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig)
export_fig(filename,'-png');

I get:
??? Error using ==> print
Error using ==> print
Error using ==> graphics\private\render
Bad data returned by HARDCOPY. Not calling IMWRITE.

This doesn't happen immediately, but maybe around the 100th file saved. After that, I can't export_fig() any image on the command line until I restart matlab. Then starting from the beginning, it works fine until around the 100th image again. Plenty of disk space.
Suggestions?

Subject: print image error

From: Oliver Woodford

Date: 15 Mar, 2010 09:37:02

Message: 2 of 2

"Ross Anderson" wrote:
> I'm saving some plots using export_fig (http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig)
> export_fig(filename,'-png');
>
> I get:
> ??? Error using ==> print
> Error using ==> print
> Error using ==> graphics\private\render
> Bad data returned by HARDCOPY. Not calling IMWRITE.
>
> This doesn't happen immediately, but maybe around the 100th file saved. After that, I can't export_fig() any image on the command line until I restart matlab. Then starting from the beginning, it works fine until around the 100th image again. Plenty of disk space.
> Suggestions?

Hi Ross

I have some questions:

Does it always fail on the same figure?
If you change the order in which you save the figures does it fail on a different one?
If you start with the figure that failed does it fail immediately?
If you use a different renderer, e.g. -painters, does it have the same problem?

Thanks,
Oliver

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