4.75

4.8 | 4 ratings Rate this file 20 downloads (last 30 days) File Size: 3.14 KB File ID: #24007

Figure Slideshow Generator

by Phillip M. Feldman

 

06 May 2009 (Updated 18 Jun 2009)

Code covered by the BSD License  

The function showfigs() generates a slideshow of all open figures.

Download Now | Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.8 (R2009a)
Other requirements So far, this has been tested only in the 32-bit Windows environment, but it should also work in other environments.
Zip File Content  
Other Files license.txt,
makefigs.m,
showfigs.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
17 May 2009 Ilana Nisky

helpful

18 Jun 2009 cagatay

very helpful. thank you.

one suggestion: right now when you press right arrow for example, it says "don't know how to handle" and terminates the slide show. It would be great if the function just ignores unassigned keys and terminates the slide show only for Escape or q.

18 Jun 2009 Ryan

Awesome. Quite awesome. I often have a lot of figures open for comparison and it's great to cycle through them easily. Thank you for a great submission.

03 Aug 2009 Paul

I've been looking for something like this for a while! thanks!!!

Please login to add a comment or rating.
Updates
06 May 2009

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

07 May 2009

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

18 Jun 2009

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.

Tag Activity for this File
Tag Applied By Date/Time
slideshow Phillip M. Feldman 06 May 2009 09:32:24
slide Phillip M. Feldman 06 May 2009 09:32:24
slides Phillip M. Feldman 06 May 2009 09:32:24
figures Phillip M. Feldman 06 May 2009 09:32:24
figure Phillip M. Feldman 06 May 2009 09:32:24
slide show Phillip M. Feldman 06 May 2009 15:48:09
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com