Version 3.1.2
matplotlib

matplotlib.axes.Axes.set_frame_on

Axes.set_frame_on(b)

Set whether the axes rectangle patch is drawn.

Parameters:b : bool