%matplotlib qt5 作用


%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中顯示出動態圖

 

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM