Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3044d12

Browse filesBrowse files
committed
DOC Completed the list of optional dependencies
1 parent b55412e commit 3044d12
Copy full SHA for 3044d12

File tree

Expand file treeCollapse file tree

1 file changed

+34
-27
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+34
-27
lines changed

‎INSTALL

Copy file name to clipboardExpand all lines: INSTALL
+34-27Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Installing an official release
2222
Matplotlib and most of its dependencies all available as wheel packages for
2323
OSX, windows and many linux distributions::
2424

25-
pip install -U numpy scipy scikit-learn
25+
pip install -U matplotlib
2626

2727
Third-party distributions of Matplotlib
2828
=======================================
@@ -73,28 +73,9 @@ or
7373
`32 bit <https://www.microsoft.com/en-us/download/details.aspx?id=5555>`__
7474
for Python 3.4) redistributable packages need to be installed.
7575

76-
Matplotlib depends on `Pillow <https://pypi.python.org/pypi/Pillow>`_
77-
for reading and saving JPEG, BMP, and TIFF image files.
78-
Matplotlib requires `MiKTeX <https://miktex.org/>`_ and
79-
`GhostScript <https://ghostscript.com/download/>`_ for rendering text
80-
with LaTeX.
81-
`FFmpeg <https://www.ffmpeg.org/>`_, `avconv <https://libav.org/>`_,
82-
`mencoder <http://www.mplayerhq.hu>`_, or
83-
`ImageMagick <http://www.imagemagick.org/script/index.php>`_ are required for the
84-
animation module.
8576

8677
The following backends should work out of the box: agg, tkagg, ps,
8778
pdf and svg.
88-
For other backends you may need to install
89-
`pycairo <https://pypi.python.org/pypi/pycairo>`_,
90-
`PyQt4 <https://pypi.python.org/pypi/PyQt4>`_,
91-
`PyQt5 <https://pypi.python.org/pypi/PyQt5>`_,
92-
`PySide <https://pypi.python.org/pypi/PySide>`_,
93-
`wxPython <https://pypi.python.org/pypi/wxPython>`_,
94-
`PyGTK <https://pypi.python.org/pypi/PyGTK>`_,
95-
`Tornado <https://pypi.python.org/pypi/tornado>`_,
96-
or GhostScript.
97-
9879
TkAgg is probably the best backend for interactive use from the
9980
standard Python shell or IPython. It is enabled as the default backend
10081
for the official binaries. GTK3 is not supported on Windows.
@@ -115,6 +96,17 @@ To run the test suite:
11596
<https://inkscape.org/>`_;
11697
* run ``py.test path\\to\\tests\\directory``.
11798

99+
.. note::
100+
101+
The following backends work out of the box: Agg, TkAgg, ps, pdf and svg.
102+
TkAgg is probably the best backend for interactive use from the standard
103+
Python shell or from IPython and is enabled as default.
104+
105+
GTK3 is not supported on windows.
106+
107+
For support for other backend, LaTeX rendering, animation input/output and
108+
larger selection of file format, you may need to install `additional
109+
dependencies <_install_requirements>`.
118110

119111

120112
.. _install_from_source:
@@ -176,24 +168,30 @@ Matplotlib requires a large number of dependencies:
176168
* `pyparsing <https://pyparsing.wikispaces.com/>`__
177169
* `libpng <http://www.libpng.org>`__ ( >= 1.2)
178170
* `pytz <http://pytz.sourceforge.net/>`__
179-
* FreeType` (>= 2.3)
171+
* FreeType (>= 2.3)
180172
* `cycler <http://matplotlib.org/cycler/>`__ (>= 0.10.0)
181173
* `six <https://pypi.python.org/pypi/six>`_
182174
* `backports.functools_lru_cache <https://pypi.python.org/pypi/backports.functools_lru_cache>`_
183175
(for Python 2.7 only)
184176
* `subprocess32 <https://pypi.python.org/pypi/subprocess32/>`_ (for Python
185-
2.7 only)
177+
2.7 only, on Linux and mac os X only)
186178

187179
Optionally, you can also install a number of packages to enables better user
188180
interface toolkit. See :ref:`what-is-a-backend` for more details on the
189181
optional Matplotlib backends and the capabilities they provide.
190182

191183
* :term:`tk` (>= 8.3, != 8.6.0 or 8.6.1): for the TkAgg backend;
192-
* :term:`pyqt` (>= 4.4): for the Qt4Agg backend;
184+
* `PyQt4 <https://pypi.python.org/pypi/PyQt4>`_ (>= 4.4): for the Qt4Agg backend;
185+
* `PyQt5 <https://pypi.python.org/pypi/PyQt5>`_: for the Qt5Agg backend;
193186
* :term:`pygtk` (>= 2.4): for the GTK and the GTKAgg backend;
194-
* :term:`wxpython` (>= 2.8 or later): for the WX or WXAgg backend.
195-
196-
For better support of animation output format and image file format, you can
187+
* :term:`wxpython` (>= 2.8 or later): for the WX or WXAgg backend;
188+
* `pycairo <https://pypi.python.org/pypi/pycairo>`_;
189+
* `PySide <https://pypi.python.org/pypi/PySide>`_;
190+
* `PyGTK <https://pypi.python.org/pypi/PyGTK>`_;
191+
* `Tornado <https://pypi.python.org/pypi/tornado>`_: for the WebAgg backend.
192+
193+
For better support of animation output format and image file format, LaTeX,
194+
etc you can
197195
install the following:
198196

199197
* `ffmpeg <https://www.ffmpeg.org/>`__/`avconv
@@ -202,7 +200,9 @@ install the following:
202200
* `ImageMagick <http://www.imagemagick.org/script/index.php>`__ (for saving
203201
animated gifs);
204202
* `Pillow <http://python-pillow.org/>`__ (for a larger selection of image
205-
file format).
203+
file format: JPEG, BMP, and TIFF image files);
204+
* `Latex <https://miktex.org/>`_ and `GhostScript <https://ghostscript.com/download/>`_
205+
(for rendering text with LaTeX);
206206

207207
.. note::
208208

@@ -212,6 +212,13 @@ install the following:
212212
more smoothly if the libraries and headers are not in the expected
213213
locations.
214214

215+
.. note::
216+
217+
The following libraries are shipped with Matplotlib:
218+
219+
- `Agg`: the antigrain C++ rendering engine;
220+
- `qhull`: to compute Delaunay triangulation;
221+
- `ttconv`: a true type font utility.
215222

216223
.. _build_linux:
217224

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.