mpl.pyplot.box()

mpl.pyplot.box(on=None)[source]

Turn the axes box on or off. on may be a boolean or a string, ‘on’ or ‘off’.

If on is None, toggle state.