简体   繁体   English

Matplotlib支持Qt5吗?

[英]Does Matplotlib support Qt5?

Does Matplotlib support Qt5 ? Matplotlib支持Qt5吗?

Update: 更新:

Reading @tcaswell's answer and comments below, it looks like the QT4Agg targets Qt4 , but that there is no backend that currently targets Qt5 , is this correct? 阅读@tcaswell的回答和评论如下,看起来QT4Agg目标是Qt4 ,但目前没有后端目标Qt5 ,这是正确的吗? (eg it looks like PyQt supports Qt5 ) (例如,它看起来像PyQt支持Qt5

matplotlib v1.4 and greater support Qt5 via the Qt5Agg backend. matplotlib v1.4和更大版本通过Qt5Agg后端支持Qt5。


The *Agg backends all use the Agg renderer for the drawing, the only difference in the gui UI they use. *Agg后端都使用Agg渲染器绘制,这是他们使用的gui UI的唯一区别。 The non-gui backends are used to generate files and can handle vector graphics just fine. 非gui后端用于生成文件,可以很好地处理矢量图形。 Excluding file limitations (not all formats support alpha ) and bugs, all backends should be equally supported. 排除文件限制(并非所有格式都支持alpha )和错误,所有后端都应得到同等支持。

The QT4Agg backend targets QT4 and will work with either PySide or PyQT (which take care of the rest of the requirements). QT4Agg后端针对QT4,可以与PySidePyQT一起使用(它可以满足其他要求)。 The QtAgg backend targets QT3 and has been removed. QtAgg后端针对QT3并已被删除。

There is a PR ( https://github.com/matplotlib/matplotlib/pull/3072 ) which adds support for Qt5 which has been merged. 有一个PR( https://github.com/matplotlib/matplotlib/pull/3072 ),它增加了对已合并的Qt5的支持。 Qt5 support for py3k will be in release 1.4. Qt5对py3k的支持将在1.4版本中发布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM