Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Raunak
Raunak le 5 Juin 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
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 commentaires
Joshua Carmichael
Joshua Carmichael le 3 Fév 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 le 12 Fév 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! :(

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by