ax.box='on'
is a command used in MATLAB to display the bounding box of the axes. The bounding box is the rectangular border that encloses the axes area. By default, it is not visible, but you can change its visibility using the box
property. Setting it to 'on'
will make the bounding box visible. Here's an example:
main.m89 chars8 lines
In this example, we create a sine wave and plot it in an axes object. Then we set the box
property of the axes to 'on'
, which makes the bounding box visible.
gistlibby LogSnag