使用matplotlib库在Jupyter笔记本中画图时,显示出来的图很模糊,加上以下代码可以使图像以矢量图格式显示,看起来更加清晰:

import matplotlib.pyplot as plt

%matplotlib inline
%config InlineBackend.figure_format = 'svg'

如果想保存矢量图,后缀名为.eps或者.pdf即可.

posted on 2018-05-31 18:53  艾克_塞伦特  阅读(3228)  评论(0编辑  收藏  举报