使用matplotlib庫在Jupyter筆記本中畫圖時,顯示出來的圖很模糊,加上如下代碼可使圖像以矢量圖格式顯示,看起來更加清晰:python
import matplotlib.pyplot as plt %matplotlib inline %config InlineBackend.figure_format = 'svg'
若是想保存矢量圖,後綴名爲.eps或者.pdf便可.svg