getframe_nosteal_fo​cus

Version 1.1.0.0 (1.53 KB) by Erik
Does what getframe does, except it does not put the plotting window in focus.
540 Downloads
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 (2024). getframe_nosteal_focus (https://www.mathworks.com/matlabcentral/fileexchange/25972-getframe_nosteal_focus), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Convert Image Type in Help Center and MATLAB Answers
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
1.1.0.0

Just added a sentence to the description.

1.0.0.0