Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 656fe2c

Browse files
committed
Update backend dependency docs.
- Add PySide2 as an option for Qt5Agg. - Move links in unrendered docs out of the main text, which makes it more readable. - Switch some links to readthedocs, which should be more useful than PyPI links. - Remove mention of need of cairo for gtk in usage.py, given that the exact same info (including the need of cairo for gtk3agg) is stated in the backend table just above.
1 parent d311b9b commit 656fe2c

2 files changed

Lines changed: 18 additions & 19 deletions

File tree

INSTALL.rst

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,25 @@ Optionally, you can also install a number of packages to enable better user
120120
interface toolkits. See :ref:`what-is-a-backend` for more details on the
121121
optional Matplotlib backends and the capabilities they provide.
122122

123-
* `Tk <https://docs.python.org/3/library/tk.html>`_ (>= 8.3, != 8.6.0 or
124-
8.6.1): for the Tk-based backends;
125-
* `PyQt4 <https://pypi.org/project/PyQt4>`_ (>= 4.6) or
126-
`PySide <https://pypi.org/project/PySide>`_ (>= 1.0.3) [#]_: for the
127-
Qt4-based backends;
128-
* `PyQt5 <https://pypi.org/project/PyQt5>`_: for the Qt5-based backends;
129-
* `PyGObject <https://pypi.org/project/PyGObject/>`_: for the GTK3-based
130-
backends [#]_;
131-
* `wxPython <https://www.wxpython.org/>`_ (>= 4) [#]_: for the wx-based
123+
* Tk_ (>= 8.3, != 8.6.0 or 8.6.1): for the Tk-based backends;
124+
* PyQt4_ (>= 4.6) or PySide_ (>= 1.0.3) [#]_: for the Qt4-based backends;
125+
* PyQt5_ or PySide2_: for the Qt5-based backends;
126+
* PyGObject_: for the GTK3-based backends [#]_;
127+
* wxPython_ (>= 4) [#]_: for the wx-based backends;
128+
* pycairo_ (>= 1.11.0) or cairocffi_ (>= 0.8): for the GTK3 and/or cairo-based
132129
backends;
133-
* `cairocffi <https://cairocffi.readthedocs.io/en/latest/>`_ (>= 0.8) or
134-
`pycairo <https://pypi.org/project/pycairo>`_: for the cairo-based
135-
backends;
136-
* `Tornado <https://pypi.org/project/tornado>`_: for the WebAgg backend;
130+
* Tornado_: for the WebAgg backend;
131+
132+
.. _Tk: https://docs.python.org/3/library/tk.html
133+
.. _PyQt4: https://pypi.org/project/PyQt4
134+
.. _PySide: https://pypi.org/project/PySide
135+
.. _PyQt5: https://pypi.org/project/PyQt5
136+
.. _PySide2: https://pypi.org/project/PySide2
137+
.. _PyGObject: https://pygobject.readthedocs.io/en/latest/
138+
.. _wxPython: https://www.wxpython.org/
139+
.. _pycairo: https://pycairo.readthedocs.io/en/latest/
140+
.. _cairocffi: https://cairocffi.readthedocs.io/en/latest/
141+
.. _Tornado: https://pypi.org/project/tornado
137142

138143
.. [#] PySide cannot be pip-installed on Linux (but can be conda-installed).
139144
.. [#] If using pip (and not conda), PyGObject must be built from source; see

tutorials/introductory/usage.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,12 +475,6 @@ def my_plotter(ax, data1, data2, param_dict):
475475
# See `jupyter-matplotlib <https://github.com/matplotlib/jupyter-matplotlib>`__
476476
# for more details.
477477
#
478-
# GTK and Cairo
479-
# ^^^^^^^^^^^^^
480-
#
481-
# ``GTK3`` backends (*both* ``GTK3Agg`` and ``GTK3Cairo``) depend on Cairo
482-
# (pycairo>=1.11.0 or cairocffi).
483-
#
484478
# .. _QT_API-usage:
485479
#
486480
# How do I select PyQt4 or PySide?

0 commit comments

Comments
 (0)