Skip to content

Commit f0d098c

Browse files
committed
Merge branch 'v1.4.x' into master
2 parents 40b6020 + 0fe3f9e commit f0d098c

22 files changed

+323
-143
lines changed

INSTALL

+32-16
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,36 @@ Installing
99
There are many different ways to install matplotlib, and the best way
1010
depends on what operating system you are using, what you already have
1111
installed, and how you want to use it. To avoid wading through all
12-
the details (and potential complications) on this page, the easiest
13-
thing for you to do is use one of the pre-packaged python
14-
distributions that already provide matplotlib built-in. The Continuum.io
15-
Python distribution `(Anaconda)
16-
<https://store.continuum.io/cshop/anaconda/>`_ and the Enthought
17-
distribution `(Canopy) <https://www.enthought.com/products/canopy/>`_
18-
are both excellent choices that "just work" out of the box for any
19-
platform. Both of these packages include matplotlib and
20-
*lots* of other useful tools.
21-
Another excellent alternative for Windows users is `Python (x, y)
22-
<https://code.google.com/p/pythonxy>`_ . matplotlib is also packaged for almost
23-
every major Linux distribution. So if you are on Linux, your package
24-
manager will probably provide matplotlib prebuilt.
12+
the details (and potential complications) on this page, there are several
13+
convenient options.
14+
15+
Most platforms : scientific Python distributions
16+
================================================
17+
18+
The first option is to use one of the pre-packaged python distributions that
19+
already provide matplotlib built-in. The Continuum.io Python distribution
20+
`(Anaconda) <https://store.continuum.io/cshop/anaconda/>`_ and the Enthought
21+
distribution `(Canopy) <https://www.enthought.com/products/canopy/>`_ are both
22+
excellent choices that "just work" out of the box for Windows, OSX and common
23+
Linux platforms. Both of these distributions include matplotlib and *lots* of
24+
other useful tools. Another excellent alternative for Windows users is
25+
`Python (x, y) <https://code.google.com/p/pythonxy>`_ .
26+
27+
Linux : using your package manager
28+
==================================
29+
30+
If you are on Linux, you might prefer to use your package manager. matplotlib
31+
is packaged for almost every major Linux distribution.
32+
33+
* Debian / Ubuntu : ``sudo apt-get install python-matplotlib``
34+
* Fedora / Redhat : ``sudo yum install python-matplotlib``
35+
36+
Mac OSX - using pip
37+
===================
38+
39+
If you are on Mac OSX you can probably install matplotlib binaries using the
40+
standard Python installation program `pip <https://pypi.python.org/pip>`_.
41+
See :ref:`installing-osx-binaries`.
2542

2643
Manually installing pre-built packages
2744
======================================
@@ -36,7 +53,7 @@ on your machine, and if not, install it. The official python builds
3653
are available for download `here <http://www.python.org/download>`_,
3754
but OS X users please read :ref:`which-python-for-osx`.
3855

39-
Once you have python up and running, you will need to install `numpy
56+
Once you have Python up and running, you will need to install `numpy
4057
<http://www.numpy.org/>`_. numpy provides high-performance array data
4158
structures and mathematical functions, and is a requirement for
4259
matplotlib. You can test your progress::
@@ -87,7 +104,6 @@ python console, there are some issues relating to user interface
87104
toolkits and interactive settings that are discussed in
88105
:ref:`mpl-shell`.
89106

90-
91107
Installing on Windows
92108
---------------------
93109

@@ -207,7 +223,7 @@ manager on Linux, you may need to install the development packages
207223

208224
.. note::
209225

210-
If you are on debian/ubuntu, you can get all the dependencies
226+
If you are on Debian/Ubuntu, you can get all the dependencies
211227
required to build matplotlib with::
212228

213229
sudo apt-get build-dep python-matplotlib

doc/api/artist_api.rst

+1-34
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
artists
55
*******
66

7-
.. inheritance-diagram:: matplotlib.patches matplotlib.lines matplotlib.text matplotlib.offsetbox
7+
.. inheritance-diagram:: matplotlib.patches matplotlib.lines matplotlib.text matplotlib.offsetbox matplotlib.image
88
:parts: 2
99

1010
:mod:`matplotlib.artist`
@@ -15,36 +15,3 @@ artists
1515
:undoc-members:
1616
:show-inheritance:
1717

18-
19-
:mod:`matplotlib.lines`
20-
=======================
21-
22-
.. automodule:: matplotlib.lines
23-
:members:
24-
:undoc-members:
25-
:show-inheritance:
26-
27-
:mod:`matplotlib.patches`
28-
=========================
29-
30-
.. automodule:: matplotlib.patches
31-
:members:
32-
:undoc-members:
33-
:show-inheritance:
34-
35-
:mod:`matplotlib.text`
36-
======================
37-
38-
.. automodule:: matplotlib.text
39-
:members:
40-
:undoc-members:
41-
:show-inheritance:
42-
43-
44-
:mod:`matplotlib.offsetbox`
45-
===========================
46-
47-
.. automodule:: matplotlib.offsetbox
48-
:members:
49-
:undoc-members:
50-
:show-inheritance:

doc/api/image_api.rst

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*****
2+
image
3+
*****
4+
5+
6+
:mod:`matplotlib.image`
7+
=======================
8+
9+
.. automodule:: matplotlib.image
10+
:members:
11+
:undoc-members:
12+
:show-inheritance:

doc/api/index.rst

+5
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,20 @@
3131
finance_api.rst
3232
font_manager_api.rst
3333
gridspec_api.rst
34+
image_api.rst
3435
legend_api.rst
36+
lines_api.rst
3537
markers_api.rst
3638
mathtext_api.rst
3739
mlab_api.rst
40+
offsetbox_api.rst
41+
patches_api.rst
3842
path_api.rst
3943
patheffects_api.rst
4044
pyplot_api.rst
4145
sankey_api.rst
4246
spines_api.rst
47+
text_api.rst
4348
ticker_api.rst
4449
tight_layout_api.rst
4550
tri_api.rst

doc/api/lines_api.rst

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*****
2+
lines
3+
*****
4+
5+
6+
:mod:`matplotlib.lines`
7+
=======================
8+
9+
.. automodule:: matplotlib.lines
10+
:members:
11+
:undoc-members:
12+
:show-inheritance:

doc/api/offsetbox_api.rst

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*********
2+
offsetbox
3+
*********
4+
5+
6+
:mod:`matplotlib.offsetbox`
7+
===========================
8+
9+
.. automodule:: matplotlib.offsetbox
10+
:members:
11+
:undoc-members:
12+
:show-inheritance:

doc/api/patches_api.rst

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*******
2+
patches
3+
*******
4+
5+
6+
:mod:`matplotlib.patches`
7+
=========================
8+
9+
.. automodule:: matplotlib.patches
10+
:members:
11+
:undoc-members:
12+
:show-inheritance:

doc/api/text_api.rst

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
****
2+
text
3+
****
4+
5+
6+
:mod:`matplotlib.text`
7+
=======================
8+
9+
.. automodule:: matplotlib.text
10+
:members:
11+
:undoc-members:
12+
:show-inheritance:

doc/faq/howto_faq.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ You can also filter on class instances::
4141

4242

4343
.. _howto-supress_offset:
44+
4445
How to prevent ticklabels from having an offset
4546
-----------------------------------------------
4647
The default formatter will use an offset to reduce
4748
the length of the ticklabels. To turn this feature
4849
off on a per-axis basis::
50+
4951
ax.get_xaxis().get_major_formatter().set_useOffset(False)
5052

5153
set the rcParam ``axes.formatter.useoffset``, or use a different
@@ -385,6 +387,7 @@ pyplot::
385387

386388

387389
.. seealso::
390+
388391
:ref:`howto-webapp` for information about running matplotlib inside
389392
of a web application.
390393

@@ -581,7 +584,8 @@ enabled, you may get errors if you don't configure matplotlib for use
581584
in these environments. Most importantly, you need to decide what
582585
kinds of images you want to generate (PNG, PDF, SVG) and configure the
583586
appropriate default backend. For 99% of users, this will be the Agg
584-
backend, which uses the C++ `antigrain <http://antigrain.com>`_
587+
backend, which uses the C++
588+
`antigrain <http://agg.sourceforge.net/antigrain.com/index.html>`_
585589
rendering engine to make nice PNGs. The Agg backend is also
586590
configured to recognize requests to generate other output formats
587591
(PDF, PS, EPS, SVG). The easiest way to configure matplotlib to use
@@ -615,7 +619,7 @@ or by saving to a file handle::
615619
import sys
616620
fig.savefig(sys.stdout)
617621

618-
Here is an example using `Pillow <http://python-imaging.github.io/>__.
622+
Here is an example using `Pillow <http://python-imaging.github.io/>`_.
619623
First, the figure is saved to a StringIO object which is then fed to
620624
Pillow for further processing::
621625

0 commit comments

Comments
 (0)