%matplotlib qt5 作用
一、總結
一句話總結:
%matplotlib qt5 的作用就是激活 qt5 渲染后端:Qt5Agg:Agg rendering in a Qt5 canvas (requires PyQt5). This backend can be activated in IPython with %matplotlib qt5.
%pylab的作用里面也有激活后端的作用,所以無論是用%matplotlib qt5 還是%pylab ,都可以在jupyter notebook中顯示出動態圖
二、%matplotlib qt5 作用
轉自或參考:
Qt5Agg | Agg rendering in a Qt5 canvas (requires PyQt5). This backend can be activated in IPython with %matplotlib qt5 . |
參照:https://matplotlib.org/3.1.1/tutorials/introductory/usage.html
這是官網上面的說明,所以作用就是 %matplotlib qt5
的作用就是激活 qt5 渲染后端
%pylab的作用里面也有激活后端的作用,
所以無論是用%matplotlib qt5
還是%pylab ,都可以在jupyter notebook中顯示出動態圖