You are reading an old version of the documentation (v2.2.2). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.box.html
Version 2.2.2
matplotlib
Fork me on GitHub

matplotlib.pyplot.box

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

Turn the axes box on or off.

Parameters:
on : bool or None

The new axes box state. If None, toggle the state.