jupyter notebook inline plots as svg
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: By default jupyter notebook inline plots are displayed as png, e.g.: import matplotlib.pyplot as plt %matplotlib inline plt.plot() How can you configure jupyter notebooks to display matplotlib inline plots as svg? 回答1: %config InlineBackend.figure_format = 'svg' does the trick. A minimal example is: import matplotlib.pyplot as plt %matplotlib inline %config InlineBackend.figure_format = 'svg' plt.plot() 文章来源: jupyter notebook inline plots as svg