I disconnected my Windows laptop from my working monitor (in `Extend` mode), and plugged it into classroom projector for teaching. Then, my plotting code in MATLAB just doesn't bring up any figure window any more.
If I unplug the projector and re-plug in, sometimes the figure will show up.
Some figures will show up normally.
Cause: The figure is placed outside the current monitor size.
Solution: There are multiple ways.
Longer version: Using `get(groot, 'DefaultFigurePosition')` to check the default position for the figure. This value seems to be initialized outside the resolution of the projector (1080p / 125%). This value is not updated when I change to a different monitor or even just disconnect the monitor, unless I restart the MATLAB process (another bad design of MATLAB).