File Exchange

image thumbnail


version by Marc Jakobi
function for creating shortcuts to figure toolbar buttons (useful for docked figures)

1 Download

Updated 20 Apr 2017

GitHub view license on GitHub

Executes/Emulates callbacks of figure toolbar buttons. Can be used to create a shortcut to figure menu items in the quick access toolbar (useful for docked figures when the figure toolbar is "hidden" behind the Figure toolstrip).
e.g.: shortcut2figtool('FileOpen') --> opens a new Figure
See screenshot for example on how to use. The toolbar icons can be found by typing the following in the command window:
Input argument:
tooltiptag - String with the emulated toolbar element
The following inputs are accepted for tooltiptag:

'PlottoolsOn' 'PlottoolsOff' 'InsertLegend' 'InsertColorbar' 'Linking' 'Brushing' 'DataCursor' 'Rotate' 'Pan' 'ZoomOut' 'ZoomIn' 'EditPlot' 'PrintFigure' 'SaveFigure' 'FileOpen' 'NewFigure'

This function relies heavily on undocumented functions and may break in a future Matlab release.

Author: Marc Jakobi 21.03.2017

Cite As

Marc Jakobi (2020). shortcut2figtool (, GitHub. Retrieved .

Comments and Ratings (0)


Added screenshot

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