axtoolbar
R2026bCreate axes toolbar
Syntax
Description
replaces the toolbar for the
current axes with a toolbar without buttons.tb = axtoolbar
replaces the default toolbar that appears near the top-right corner of the axes with a
toolbar that contains only the specified buttons for either of the previous syntaxes. For
example, tb = axtoolbar(___,buttons)axtoolbar(["pan" "restoreview"]) specifies a button to pan and a
button to restore the original view. You can interact with the toolbar using a mouse, a
keyboard, or a touch screen. The function returns an AxesToolbar
object.
specifies options using one or more name-value arguments in addition to any of the input
argument combinations in previous syntaxes. For example, to expand the toolbar, set
tb = axtoolbar(___,Name=Value)Expanded to "on".
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
If you want to modify the behavior or properties of one of the default toolbar buttons, then use the
axtoolbarbtnfunction to create and use a new button in place of the default button. You can still use the icon of the default button.


