Figure Slideshow Generator

The function showfigs() generates a slideshow of all open figures.
2.7K Downloads
Updated 18 Jun 2009

View License

The function showfigs() generates a slideshow of all open figures, bringing each open figure to the fore in turn and then pausing until the user presses a key. Key functions are as follows:

- Press Enter, down-arrow, or spacebar to advance to the next figure (next higher figure number). If the current figure is the last (highest figure number), the slide show returns to figure 1.

- Press the up-arrow key to return to the previous figure (next lower figure number). If the current figure is figure 1, the slide show cycles back to the last figure (highest figure number).

- Press a numeric key (1-9) to display the figure having that specific figure number. If there is no figure corresponding to the key that was pressed, the display does not change.

- Press the Delete key to close the current figure window. The previous figure will be displayed, unless the deleted figure was figure 1, in which case the last figure will be displayed.

- Press the End key to display the last figure (highest figure number, not counting any figures that have been deleted).

- Press the Home key to display the first figure (lowest figure number, not counting any figures that have been deleted).

- Press Escape or "q" to terminate the slide show.

Cite As

Phillip M. Feldman (2024). Figure Slideshow Generator (https://www.mathworks.com/matlabcentral/fileexchange/24007-figure-slideshow-generator), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.4.0.0

Version 1.4, 18 Jun 2009: Modified so that pressing an invalid key does not terminate the slideshow. Added code to handle right and left arrows.

1.2.0.0

Fixed bug (code that processes numeric keys was assuming that handle numbers start with 1 and are consecutive, which is not always true).

1.1.0.0

Version 1.1, 6 May 2009: Modified code to check for deleted figures using ishandle() function.

1.0.0.0