myfigure

shortcut for figure command to enable switching between figures w/o raising windows to the front

You are now following this Submission

This shortcut replacement for matlab's figure command allows rapid switching between figures without the speed slow down caused by raising the figure window to the front every time it is made active, which is the default action for matlab's figure command. Using this routine figures can be plotted to even when iconified and is very handy when rapidly switching between figures.

Usage: h=myfigure(num) with optional input and output args

- if there no input figure number num, rutine creates a new figure which is raised to front and made active
- if num is specified and figure does not exist, routines creates figure num which is raised to front and made active
- if figure num already exits, this function makes it active (current) but does not raise it to the front

optionally returns figure handle of newly active figure

Cite As

David Long (2026). myfigure (https://se.mathworks.com/matlabcentral/fileexchange/34392-myfigure), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Interactive Control and Callbacks in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0