jupyter笔记本内联绘图为svg [英] jupyter notebook inline plots as svg
本文介绍了jupyter笔记本内联绘图为svg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认情况下,jupyter笔记本的内联图显示为png,例如:
By default jupyter notebook inline plots are displayed as png, e.g.:
import matplotlib.pyplot as plt
%matplotlib inline
plt.plot()
如何配置jupyter笔记本以将matplotlib内联图显示为svg?
How can you configure jupyter notebooks to display matplotlib inline plots as svg?
推荐答案
使用 %matplotlib魔术的文档.
注意:InlineBackend.figure_format
是已弃用.
这篇关于jupyter笔记本内联绘图为svg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文