Cannot print matlab graph file

Dear everyone who can help me,
Would you please advise me due to unable to print matlab graph.
The error written as stated below:
Warning: Failed in memory BitBlt (gle00000008)
> In C:\Program Files\MATLAB\R2012a\toolbox\matlab\graphics\hardcopy.p>hardcopy at 28
In graphics\private\render at 142
In print>LocalPrint at 280
In print at 237
In graphics\private\printdlg_deprecated at 66
In printdlg at 62
In printpreview>onPrint at 1000
Warning: Failed in memory BitBlt (gle00000008)
> In C:\Program Files\MATLAB\R2012a\toolbox\matlab\graphics\hardcopy.p>hardcopy at 28
In graphics\private\render at 142
In print>LocalPrint at 280
In print at 237
In graphics\private\printdlg_deprecated at 66
In printdlg at 62
In printpreview>onPrint at 1000
Warning: Negative data ignored
Warning: Negative data ignored
> In legendcolorbarlayout>doParentResize at 335
Warning: Negative data ignored
> In legendcolorbarlayout>doParentResize at 335
In getfigurefordesktopclient>fig2client at 21
In getfigurefordesktopclient at 12
Warning: Negative data ignored
Warning: Negative data ignored
> In legendcolorbarlayout>doParentResize at 335
In getfigurefordesktopclient>fig2client at 21
In getfigurefordesktopclient at 12
Thank you very much in advance
Best regards
Taufan

3 Comments

How exactly do you try printing? (Command? Menu?)
Does this happen only with THIS figure or also plot(1:10) simple figure?
Does the problem happen even when you are not using log plots?
The problem happens when I print in any plots

Sign in to comment.

Answers (3)

Christoph Wehrli
Christoph Wehrli on 12 Dec 2012
same problem occurred with a new printer for some figures but not with others. I tried set(gcf,'Renderer','OpenGL') for the troublesome figure, and bingo it printed OK.

5 Comments

This solution worked for me, too.
Worked too here...
Thanks, it works for me.
Bam! Fixed it. Thanks.
It works
Thanks alot

Sign in to comment.

Hessam
Hessam on 6 Apr 2012
Got the same warning Especially using neural network toolbox, I need to get the performance plot saved. But the plot, like the graphical output of some other toolbox, does not have the save option.
Francois Doucet
Francois Doucet on 7 May 2012
Same here:
Warning: Failed in memory BitBlt (gle00000008) > In C:\Program Files\MATLAB\R2012a\toolbox\matlab\graphics\hardcopy.p>hardcopy at 28 In graphics\private\render at 142 In print>LocalPrint at 280 In print at 237 In graphics\private\printdlg_deprecated at 66 In printdlg at 62 In printpreview>onPrint at 1000

Categories

Find more on Printing and Saving in Help Center and File Exchange

Products

Asked:

on 28 Mar 2012

Commented:

on 13 Nov 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!