MATLAB Cancel figure display at the top of the screen

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.