Figure Window Will Not Open

Occasionally Matlab fails to generate figures. If I'm using .m a window briefly pops up blank, then disappears. I'll have a window titled "Figure 1" but I'm unable to open it. If I'm using .mlx the plot will appear on the side bar but the same issue occurs when I try to open the figure. I do not get an error message... This seems to happen mostly with larger figures (most recently 3x4 subplot). What could be the problem?

Answers (1)

Walter Roberson
Walter Roberson on 6 Sep 2020
Edited: Walter Roberson on 6 Sep 2020
You can get that effect if the figures are being opened but with Visible set to 'off'
If you have a saved figure and its Visible property is off, then MATLAB will not display the figure when you open it; you would need to set Visible on again.
If your code has somehow done
set(groot, 'DefaultFigureVisible', 'off')
then all future figures in that session would have Visible off set for them unless it was overridden.

9 Comments

I'm not sure how Visible could have been set to off, but I included
set(groot, 'DefaultFigureVisible', 'on')
before generating my plots and I'm still having the same problem. How can I fix this?
figs = findall(0, 'type', 'figure')
and see if it lists the figures you created.
It does, it simply gives me an mxn Figure array
To confirm, the figures are listed when you ask about them, but they are not visible ?
If you then
set(figs, 'visible', 'on')
does that help?
If not, then I suggest trying
opengl software
if you are on a Windows system
Yes, the figures are listed but they are not visible.
The first one
set(figs, 'visible', 'on')
did not change anything. I am using Windows so I tried,
opengl software
and the figure window opened, but there was still no figure displayed.
Could you show us the results of
opengl info
Also, are you using Windows 10?
Also, as an experiment try
restoredefaultpath
rehash toolboxcache
Here are the results. Yes, I'm using Windows 10 pro 64 bit.
restoredefaultpath
rehash toolboxcache
also opened the figure window, but the figure still did not display.
Your drivers are fairly new, but you could try updating them to the newest, https://downloadcenter.intel.com/download/29808/Intel-Graphics-Windows-10-DCH-Drivers?product=88355

Sign in to comment.

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Release

R2020a

Community Treasure Hunt

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

Start Hunting!