Figure control widget

Intuitive manipulation of a figure using key and mouse gestures


Updated 22 Jul 2015

View License

Especially useful for 3d renderings, this widget allows the user to intuitively rotate, pan and zoom any axes within a figure using key presses and mouse gestures. Additionally, link several axes to move synchronously, press q to quit the widget, r (or double-click) to reset the current axes and escape to close the figure.

Cite As

Oliver Woodford (2023). Figure control widget (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Specifying Target for Graphics Output in Help Center and MATLAB Answers

Inspired by: view3d.m, Figure Rotator

Inspired: View Contol Widget

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

This update allows the method to block, be ignored when modifier keys are pressed, and pass on mouse gestures and button presses to other callbacks.

Added ability to link axes

Add scroll wheel functionality

Improved resetting of multiple axes and figures