Version (1.53 KB) by Erik
Does what getframe does, except it does not put the plotting window in focus.


Updated 30 Nov 2009

View License

By printing the plot to a temporary image file, and then reading the image in again, this function gets the plot without stealing the focus from anything else you might want to do with the computer while plotting.

It also avoids the issue of getframe sometimes capturing a window on top of the plotting window you want to capture.

Note that, in contrast to getframe, this does not capture the plot exactly as it looks on the screen, but instead the way it looks when you print it to an image file.

Cite As

Erik (2023). getframe_nosteal_focus (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Just added a sentence to the description.