jupyter notebook inline plots as svg

匿名 (未验证) 提交于 2019-12-03 02:49:01

问题:

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() 


易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!