使用matplotlib库在Jupyter笔记本中画图时,显示出来的图很模糊,加上如下代码可使图像以矢量图格式显示,看起来更加清晰:python
import matplotlib.pyplot as plt %matplotlib inline %config InlineBackend.figure_format = 'svg'
若是想保存矢量图,后缀名为.eps或者.pdf便可.svg