How to remove frame from matplotlib (pyplot.figure vs matplotlib.figure ) (frameon=False Problematic in matplotlib)
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: To remove frame in figure, I write frameon = False works perfect with pyplot.figure , but with matplotlib.Figure it only removes the gray background, the frame stays . Also, I only want the lines to show, and all the rest of figure be transparent. with pyplot I can do what I want, I want to do it with matplotlib for some long reason I 'd rather not mention to extend my question. 回答1: First off, if you're using savefig , be aware that it will override the figure's background color when saving unless you specify otherwise (e.g. fig