File Exchange

image thumbnail

browseFigure

version 1.0.0.0 (2.26 KB) by Stephan
Browse through multiple sets of graphics objects (e.g. data sets) in a single figure window

1 Download

Updated 23 Nov 2010

View License

File for browsing through multiple sets of graphics objects (e.g. representing different data sets) in a single figure window: This functions enables you to browse through multiple sets of distinct graphics objects (e.g. axes, text, ect.) within a single figure window using a slider generated in this window. This is for example useful, if you have several data sets that you would like to browse quickly without opening many windows. The function works by collection the sets of the handles of the related objects and making all but one set invisible. In order to achieve this, you have to call the function “collectObjects(fig)” with the handle of the figure window as argument each time you have created a new set of objects. At the end, you have to call “browseFigure(fig)” to create the slider in the window. Even after saving/loading or sharing of the figure, you can still browse through your data. See also the function’s help with an included example.

Cite As

Stephan (2020). browseFigure (https://www.mathworks.com/matlabcentral/fileexchange/29496-browsefigure), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Stephan

Dear Andrew,
happy you like the tool! As for the error, I couldn't reproduce it for a long time (thus my late reply) but now I found a situation where I get the same behaviour: When I use legends in my axes it indeed produces the error you describe. Unfortunately, I'm not sure why this is the case and I didn't find a solution/workaround. It would be great if you could let me know whether omitting legends "solves" the problem for you.
Best,
Stephan

Andrew

Stephan,

This is a wonderful little tool. I am having trouble when I try to save the book and reopen it. It saves without issue and when I reopen the file it has the slider, but when I try to slide I get the following error message:
??? Error using ==> set
Invalid handle

??? Error while evaluating uicontrol Callback

Any thoughts on this?

Thanks in advance

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