MATLAB Cancel figure display at the top of the screen
MATLAB cancels the figure display at the top of the screen.
MATLAB When running code or debugging code, if you want to display a picture figure or plot, etc., if the code is not appropriate,
Will make the figure get the screen focus and run to the top of the screen. If we want to do something else while running the code, we often
It is inconvenient for other programs to lose input focus because of MATLAB display pictures.
The following is the axes caused by MATLAB display image to the other program lost focus for example, give a solution.
It's actually very simple:
Originally used axes (axes_handle) to select Axes_handle as the current axis, and let the figure containing him get focus,
Now, using the set (GCF, ' currentaxes ', axes_handle) instead of the above function, you can meet the painting requirements at the same time,
does not cause other programs to lose focus.
Other MATLAB drawing, display picture function can also do similar processing, so as to achieve the goal of not getting focus and finish drawing.