To remove frame in figure, I write
frameon=False
works perfect with pyplot.figure, but with matplotlib.Figure it
pyplot.figure
matplotlib.Figure
plt.box(False) plt.xticks([]) plt.yticks([]) plt.savefig('fig.png')
should do the trick.