一、总结

一句话总结:

%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中显示出动态图

 

 

 

 

 

相关文章:

  • 2021-06-26
  • 2021-10-06
  • 2021-11-21
  • 2021-08-19
  • 2022-12-23
  • 2021-07-02
  • 2022-01-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-05-20
相关资源
相似解决方案