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

This Page

matplotlib.pyplot.box

matplotlib.pyplot.box(on=None)

Turn the axes box on or off.

Parameters:

on : bool or None

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