To remove frame in figure, I write
frameon=False
works perfect with pyplot.figure, but with matplotlib.Figure it
pyplot.figure
matplotlib.Figure
The easiest way to get rid of the the ugly frame in newer versions of matplotlib:
import matplotlib.pyplot as plt plt.box(False)
If you really must always use the object oriented approach, then do: ax.set_frame_on(False).
ax.set_frame_on(False)