Code covered by the BSD License  

Highlights from
A figure with sliders

Be the first to rate this file! 20 Downloads (last 30 days) File Size: 3.04 KB File ID: #22091 Version: 1.2
image thumbnail

A figure with sliders



14 Nov 2008 (Updated )

Creates or adds sliders to a figure

| Watch this File

File Information

FIGURESLIDER cretes by itself a new figure with horizontal and vertical sliders and returns its handle. Sliders are hidden if all objects are shown in the figure. When the figure gets smaller than the enclosed object set, sliders may be used to shift the figure view. Objects in normalized Units are not affected.
An additional Center button is available on the lower right side of the figure window.
FIGURESLIDER(H) adds sliders to an existing window.
FIGURESLIDER works the same as FIGURE. You may use GET(H) to obtain properties of the figure.
Example: figureslider('Name','Figure with sliders', 'ToolBar','figure')

MATLAB release MATLAB 7 (R14)
Other requirements Should work with any version of Matlab >= 6.5. If the number of enclosed objects is large, the shifting of objects may get slow. You should then create a unique uipanel in the figure, and place your objects inside (in Matlab >= 7).
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
01 Mar 2013 Nimrodb

Can I use this with an already existing GUI?
(I have a GUI I built with Guide and I want to add scrollers when using a smaller display screen)

Comment only
01 Mar 2013 QiQin Zhan

I'm so appreciated to you for your work.But when I use the function
to add sliders to my figure,the slider did not appear itself?So strange?What's wrong with it?The version of my Matlab is Matlab2012b. And the figure units is normalized.

Comment only
15 Dec 2008 1.1

Make sure sliders do not move when using them

15 Dec 2008 1.2

shorter code, file updated

Contact us