Info

This question is closed. Reopen it to edit or answer.

"Setting PBuffer for OpenGL printing: Invalid drawable" - What does this mean?

1 view (last 30 days)
Hi! I get the error "Setting PBuffer for OpenGL printing: Invalid drawable" when I try to print a fullscreen figure in Matlab. I'm using
hfig=figure(1);
set(hfig,'units','normalized','outerposition',[0.1 0.1 0.9 0.9],'Name','LMAS, UC Berkeley : MTConnect in action') %New fullscreen figure
And this further has 4 subplots in a 2x2 tiled arrangement. I am using a Mac. I scoured the net for this error and all I could come up with was that my figure had too high a resolution. The plotting works perfectly fine when I comment the fullscreen command (the set command). Any ideas on what is happening? And if yes, how can I fix it?
  2 Comments
Joshua Carmichael
Joshua Carmichael on 3 Feb 2016
I have recently encountered the same problem, while using export_fig.m. I have previously used printing and saving figures as .pdfs for quite some time without any problem. Strangely, I was in the middle of a session, in which I had previously ran my functions and saved my figures, when I began receiving this error. I had to force quite Matlab. Restarting Matlab and my computer did not fix it.
Benoit Pasquier
Benoit Pasquier on 12 Feb 2016
Same here with export_fig... The only thing that I can recall that changed in the meantime (before when it worked until now when it doesn't) is java update popped up and I accepted... I need this to work! Please help! :(

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!