box
Display or hide graphics object outline.
📝Syntax
box
box('on')
box('off')
box(visibility)
box(target, ...)
📥Input Arguments
Parameter Description
visibility Outline visibility: 'on', 'off', true, false, 1, or 0.
target Target object with a Box property, such as axes, legend, or colorbar.
📄Description

box() toggles the outline of the current axes.

box('on') displays the current axes outline.

box('off') hides the current axes outline.

box(target, ...) modifies the outline of the specified target instead of the current axes.

💡Examples
f = figure();
plot(1:10)
box on
Example illustration
🔗See Also
axesgridlegendcolorbar
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub