SyntaxFix
Write A Post
Hire A Developer
Questions
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)