Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Matplotlib support Qt5?

Does Matplotlib support 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? (e.g. it looks like PyQt supports Qt5)

like image 894
Amelio Vazquez-Reina Avatar asked Oct 04 '22 07:10

Amelio Vazquez-Reina


1 Answers

matplotlib v1.4 and greater support Qt5 via the Qt5Agg backend.


The *Agg backends all use the Agg renderer for the drawing, the only difference in the gui UI they use. The non-gui backends are used to generate files and can handle vector graphics just fine. Excluding file limitations (not all formats support alpha) and bugs, all backends should be equally supported.

The QT4Agg backend targets QT4 and will work with either PySide or PyQT (which take care of the rest of the requirements). The QtAgg backend targets QT3 and has been removed.

There is a PR (https://github.com/matplotlib/matplotlib/pull/3072) which adds support for Qt5 which has been merged. Qt5 support for py3k will be in release 1.4.

like image 154
tacaswell Avatar answered Oct 10 '22 09:10

tacaswell