forked from matplotlib/matplotlib.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstalling.html
More file actions
606 lines (550 loc) · 33.1 KB
/
installing.html
File metadata and controls
606 lines (550 loc) · 33.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Installing — Matplotlib 1.5.3 documentation</title>
<link rel="stylesheet" href="../_static/mpl.css"
type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css"
type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '1.5.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="search" type="application/opensearchdescription+xml"
title="Search within Matplotlib 1.5.3 documentation"
href="../_static/opensearch.xml"/>
<link rel="shortcut icon" href="../_static/favicon.ico"/>
<link rel="top" title="Matplotlib 1.5.3 documentation" href="../index.html" />
<link rel="up" title="Configuration Guide" href="configuration.html" />
<link rel="next" title="Customizing matplotlib" href="customizing.html" />
<link rel="prev" title="Configuration Guide" href="configuration.html" />
</head>
<body>
<div class="alert" style="background-color: #FEA46C; padding: 10px 0;
">
<h2>Matplotlib 2.0.0rc2 is available</h2>
<p><a href="../style_changes.html"
style="font-weight: bold;
color: #11557C;">Install the release candidate now!</a></p>
</div>
<!-- The "Fork me on github" ribbon -->
<img style="float: right; margin-bottom: -40px; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" usemap="#ribbonmap"/>
<map name="ribbonmap">
<area shape="poly" coords="15,0,148,-1,148,135" href="https://github.com/matplotlib/matplotlib" title="Fork me on GitHub" />
</map>
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
<a href="../index.html"><img src="../_static/logo2.svg" width="540px" border="0" alt="matplotlib"/></a>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="customizing.html" title="Customizing matplotlib"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="configuration.html" title="Configuration Guide"
accesskey="P">previous</a> |</li>
<li><a href="../index.html">home</a>| </li>
<li><a href="../examples/index.html">examples</a>| </li>
<li><a href="../gallery.html">gallery</a>| </li>
<li><a href="../api/pyplot_summary.html">pyplot</a>| </li>
<li><a href="../contents.html">docs</a> »</li>
<li><a href="index.html" >User’s Guide</a> »</li>
<li><a href="configuration.html" accesskey="U">Configuration Guide</a> »</li>
</ul>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<a href="http://depsy.org/package/python/matplotlib">
<img src="http://depsy.org/api/package/pypi/matplotlib/badge.svg">
</a>
<br/>
Travis-CI: <a href="https://travis-ci.org/matplotlib/matplotlib">
<img src="https://travis-ci.org/matplotlib/matplotlib.svg?branch=master"/>
</a>
<br/>
<h3><a href="../contents.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Installing</a><ul>
<li><a class="reference internal" href="#installing-pre-built-packages">Installing pre-built packages</a><ul>
<li><a class="reference internal" href="#most-platforms-scientific-python-distributions">Most platforms : scientific Python distributions</a></li>
<li><a class="reference internal" href="#linux-using-your-package-manager">Linux : using your package manager</a></li>
<li><a class="reference internal" href="#mac-osx-using-pip">Mac OSX : using pip</a></li>
<li><a class="reference internal" href="#windows">Windows</a></li>
</ul>
</li>
<li><a class="reference internal" href="#installing-from-source">Installing from source</a><ul>
<li><a class="reference internal" href="#build-requirements">Build requirements</a><ul>
<li><a class="reference internal" href="#required-dependencies">Required Dependencies</a></li>
<li><a class="reference internal" href="#optional-gui-framework">Optional GUI framework</a></li>
<li><a class="reference internal" href="#optional-external-programs">Optional external programs</a></li>
<li><a class="reference internal" href="#optional-dependencies">Optional dependencies</a></li>
<li><a class="reference internal" href="#required-libraries-that-ship-with-matplotlib">Required libraries that ship with matplotlib</a></li>
</ul>
</li>
<li><a class="reference internal" href="#building-on-linux">Building on Linux</a></li>
<li><a class="reference internal" href="#building-on-osx">Building on OSX</a></li>
<li><a class="reference internal" href="#building-on-windows">Building on Windows</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="../contents.html">Documentation overview</a><ul>
<li><a href="index.html">User’s Guide</a><ul>
<li><a href="configuration.html">Configuration Guide</a><ul>
<li>Previous: <a href="configuration.html" title="previous chapter">Configuration Guide</a></li>
<li>Next: <a href="customizing.html" title="next chapter">Customizing matplotlib</a></li>
</ul></li>
</ul></li>
</ul></li>
</ul>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/users/installing.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="installing">
<h1>Installing<a class="headerlink" href="#installing" title="Permalink to this headline">¶</a></h1>
<p>There are many different ways to install matplotlib, and the best way
depends on what operating system you are using, what you already have
installed, and how you want to use it. To avoid wading through all
the details (and potential complications) on this page, there are several
convenient options.</p>
<div class="section" id="installing-pre-built-packages">
<h2>Installing pre-built packages<a class="headerlink" href="#installing-pre-built-packages" title="Permalink to this headline">¶</a></h2>
<div class="section" id="most-platforms-scientific-python-distributions">
<h3>Most platforms : scientific Python distributions<a class="headerlink" href="#most-platforms-scientific-python-distributions" title="Permalink to this headline">¶</a></h3>
<p>The first option is to use one of the pre-packaged python
distributions that already provide matplotlib built-in. The
Continuum.io Python distribution (<a class="reference external" href="https://www.continuum.io/downloads/">Anaconda</a> or <a class="reference external" href="http://conda.pydata.org/miniconda.html">miniconda</a>) and the Enthought
distribution <a class="reference external" href="https://www.enthought.com/products/canopy/">(Canopy)</a>
are both excellent choices that “just work” out of the box for
Windows, OSX and common Linux platforms. Both of these distributions
include matplotlib and <em>lots</em> of other useful tools.</p>
</div>
<div class="section" id="linux-using-your-package-manager">
<h3>Linux : using your package manager<a class="headerlink" href="#linux-using-your-package-manager" title="Permalink to this headline">¶</a></h3>
<p>If you are on Linux, you might prefer to use your package manager. matplotlib
is packaged for almost every major Linux distribution.</p>
<ul class="simple">
<li>Debian / Ubuntu : <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">apt-get</span> <span class="pre">install</span> <span class="pre">python-matplotlib</span></code></li>
<li>Fedora / Redhat : <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">yum</span> <span class="pre">install</span> <span class="pre">python-matplotlib</span></code></li>
</ul>
</div>
<div class="section" id="mac-osx-using-pip">
<h3>Mac OSX : using pip<a class="headerlink" href="#mac-osx-using-pip" title="Permalink to this headline">¶</a></h3>
<p>If you are on Mac OSX you can probably install matplotlib binaries using the
standard Python installation program <a class="reference external" href="https://pypi.python.org/pypi/pip/">pip</a>.
See <a class="reference internal" href="../faq/installing_faq.html#install-osx-binaries"><span class="std std-ref">Installing OSX binary wheels</span></a>.</p>
</div>
<div class="section" id="windows">
<span id="installing-windows"></span><h3>Windows<a class="headerlink" href="#windows" title="Permalink to this headline">¶</a></h3>
<p>If you don’t already have Python installed, we recommend using
one of the <a class="reference external" href="http://www.scipy.org/install.html">scipy-stack compatible Python distributions</a> such as WinPython, Python(x,y),
Enthought Canopy, or Continuum Anaconda, which have matplotlib and many
of its dependencies, plus other useful packages, preinstalled.</p>
<p>For <a class="reference external" href="https://www.python.org/download/">standard Python</a> installations,
install matplotlib using <a class="reference external" href="https://pypi.python.org/pypi/pip/">pip</a>:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">python</span> <span class="o">-</span><span class="n">m</span> <span class="n">pip</span> <span class="n">install</span> <span class="o">-</span><span class="n">U</span> <span class="n">pip</span> <span class="n">setuptools</span>
<span class="n">python</span> <span class="o">-</span><span class="n">m</span> <span class="n">pip</span> <span class="n">install</span> <span class="n">matplotlib</span>
</pre></div>
</div>
<p>In case Python 2.7 or 3.4 are not installed for all users,
the Microsoft Visual C++ 2008 (
<a class="reference external" href="http://www.microsoft.com/download/en/details.aspx?id=15336">64 bit</a>
or
<a class="reference external" href="http://www.microsoft.com/download/en/details.aspx?id=29">32 bit</a>
for Python 2.7) or Microsoft Visual C++ 2010 (
<a class="reference external" href="http://www.microsoft.com/en-us/download/details.aspx?id=14632">64 bit</a>
or
<a class="reference external" href="http://www.microsoft.com/en-us/download/details.aspx?id=5555">32 bit</a>
for Python 3.4) redistributable packages need to be installed.</p>
<p>Matplotlib depends on <a class="reference external" href="https://pypi.python.org/pypi/Pillow">Pillow</a>
for reading and saving JPEG, BMP, and TIFF image files.
Matplotlib requires <a class="reference external" href="http://miktex.org/">MiKTeX</a> and
<a class="reference external" href="http://www.ghostscript.com/download/">GhostScript</a> for rendering text
with LaTeX.
<a class="reference external" href="https://www.ffmpeg.org/">FFmpeg</a>, <a class="reference external" href="https://libav.org/">avconv</a>,
<a class="reference external" href="http://www.mplayerhq.hu">mencoder</a>, or
<a class="reference external" href="http://www.imagemagick.org/">ImageMagick</a> are required for the
animation module.</p>
<p>The following backends should work out of the box: agg, tkagg, ps,
pdf and svg.
For other backends you may need to install
<a class="reference external" href="https://pypi.python.org/pypi/pycairo">pycairo</a>,
<a class="reference external" href="https://pypi.python.org/pypi/PyQt4">PyQt4</a>,
<a class="reference external" href="https://pypi.python.org/pypi/PyQt5">PyQt5</a>,
<a class="reference external" href="https://pypi.python.org/pypi/PySide">PySide</a>,
<a class="reference external" href="https://pypi.python.org/pypi/wxPython">wxPython</a>,
<a class="reference external" href="https://pypi.python.org/pypi/PyGTK">PyGTK</a>,
<a class="reference external" href="https://pypi.python.org/pypi/tornado">Tornado</a>,
or GhostScript.</p>
<p>TkAgg is probably the best backend for interactive use from the
standard Python shell or IPython. It is enabled as the default backend
for the official binaries. GTK3 is not supported on Windows.</p>
<p>The Windows wheels (<code class="file docutils literal"><span class="pre">*.whl</span></code>) on the <a class="reference external" href="https://pypi.python.org/pypi/matplotlib/">PyPI download page</a> do not contain test data
or example code.
If you want to try the many demos that come in the matplotlib source
distribution, download the <code class="file docutils literal"><span class="pre">*.tar.gz</span></code> file and look in the
<code class="file docutils literal"><span class="pre">examples</span></code> subdirectory.
To run the test suite, copy the <code class="file docutils literal"><span class="pre">lib\matplotlib\tests</span></code> and
<code class="file docutils literal"><span class="pre">lib\mpl_toolkits\tests</span></code> directories from the source
distribution to <code class="file docutils literal"><span class="pre">sys.prefix\Lib\site-packages\matplotlib</span></code> and
<code class="file docutils literal"><span class="pre">sys.prefix\Lib\site-packages\mpl_toolkits</span></code> respectively, and
install <a class="reference external" href="https://pypi.python.org/pypi/nose">nose</a>, <a class="reference external" href="https://pypi.python.org/pypi/mock">mock</a>, Pillow, MiKTeX, GhostScript,
ffmpeg, avconv, mencoder, ImageMagick, and <a class="reference external" href="https://inkscape.org/">Inkscape</a>.</p>
</div>
</div>
<div class="section" id="installing-from-source">
<span id="install-from-source"></span><h2>Installing from source<a class="headerlink" href="#installing-from-source" title="Permalink to this headline">¶</a></h2>
<p>If you are interested in contributing to matplotlib development,
running the latest source code, or just like to build everything
yourself, it is not difficult to build matplotlib from source. Grab
the latest <em>tar.gz</em> release file from <a class="reference external" href="https://pypi.python.org/pypi/matplotlib/">the PyPI files page</a>, or if you want to
develop matplotlib or just need the latest bugfixed version, grab the
latest git version <a class="reference internal" href="../faq/installing_faq.html#install-from-git"><span class="std std-ref">Source install from git</span></a>.</p>
<p>The standard environment variables <code class="xref py py-obj docutils literal"><span class="pre">CC</span></code>, <code class="xref py py-obj docutils literal"><span class="pre">CXX</span></code>, <code class="xref py py-obj docutils literal"><span class="pre">PKG_CONFIG</span></code> are respected.
This means you can set them if your toolchain is prefixed. This may be used for
cross compiling.</p>
<blockquote>
<div>export CC=x86_64-pc-linux-gnu-gcc
export CXX=x86_64-pc-linux-gnu-g++
export PKG_CONFIG=x86_64-pc-linux-gnu-pkg-config</div></blockquote>
<p>Once you have satisfied the requirements detailed below (mainly
python, numpy, libpng and freetype), you can build matplotlib:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="n">matplotlib</span>
<span class="n">python</span> <span class="n">setup</span><span class="o">.</span><span class="n">py</span> <span class="n">build</span>
<span class="n">python</span> <span class="n">setup</span><span class="o">.</span><span class="n">py</span> <span class="n">install</span>
</pre></div>
</div>
<p>We provide a <a class="reference external" href="https://github.com/matplotlib/matplotlib/raw/master/setup.cfg.template">setup.cfg</a>
file that goes with <code class="file docutils literal"><span class="pre">setup.py</span></code> which you can use to customize
the build process. For example, which default backend to use, whether
some of the optional libraries that matplotlib ships with are
installed, and so on. This file will be particularly useful to those
packaging matplotlib.</p>
<p>If you have installed prerequisites to nonstandard places and need to
inform matplotlib where they are, edit <code class="docutils literal"><span class="pre">setupext.py</span></code> and add the base
dirs to the <code class="docutils literal"><span class="pre">basedir</span></code> dictionary entry for your <code class="docutils literal"><span class="pre">sys.platform</span></code>.
e.g., if the header to some required library is in
<code class="docutils literal"><span class="pre">/some/path/include/someheader.h</span></code>, put <code class="docutils literal"><span class="pre">/some/path</span></code> in the
<code class="docutils literal"><span class="pre">basedir</span></code> list for your platform.</p>
<div class="section" id="build-requirements">
<span id="install-requirements"></span><h3>Build requirements<a class="headerlink" href="#build-requirements" title="Permalink to this headline">¶</a></h3>
<p>These are external packages which you will need to install before
installing matplotlib. If you are building on OSX, see
<a class="reference internal" href="#build-osx"><span class="std std-ref">Building on OSX</span></a>. If you are building on Windows, see
<a class="reference internal" href="#build-windows"><span class="std std-ref">Building on Windows</span></a>. If you are installing dependencies with a
package manager on Linux, you may need to install the development
packages (look for a “-dev” postfix) in addition to the libraries
themselves.</p>
<div class="section" id="required-dependencies">
<h4>Required Dependencies<a class="headerlink" href="#required-dependencies" title="Permalink to this headline">¶</a></h4>
<dl class="docutils">
<dt><a class="reference internal" href="../glossary/index.html#term-python"><span class="xref std std-term">python</span></a> 2.7, 3.4, or 3.5</dt>
<dd><a class="reference external" href="http://www.python.org/download/">Download python</a>.</dd>
<dt><a class="reference internal" href="../glossary/index.html#term-numpy"><span class="xref std std-term">numpy</span></a> 1.6 (or later)</dt>
<dd>array support for python (<a class="reference external" href="http://numpy.org">download numpy</a>)</dd>
<dt><a class="reference external" href="http://pythonhosted.org/setuptools/">setuptools</a></dt>
<dd>Setuptools provides extensions for python package installation.</dd>
<dt><a class="reference internal" href="../glossary/index.html#term-dateutil"><span class="xref std std-term">dateutil</span></a> 1.1 or later</dt>
<dd>Provides extensions to python datetime handling. If using pip,
easy_install or installing from source, the installer will attempt
to download and install <code class="xref py py-obj docutils literal"><span class="pre">python_dateutil</span></code> from PyPI.</dd>
<dt><a class="reference external" href="https://pyparsing.wikispaces.com/">pyparsing</a></dt>
<dd>Required for matplotlib’s mathtext math rendering support. If
using pip, easy_install or installing from source, the installer
will attempt to download and install <code class="xref py py-obj docutils literal"><span class="pre">pyparsing</span></code> from PyPI.</dd>
<dt><a class="reference external" href="http://www.libpng.org">libpng 1.2 (or later)</a></dt>
<dd>library for loading and saving <a class="reference internal" href="../glossary/index.html#term-png"><span class="xref std std-term">PNG</span></a> files (<a class="reference external" href="http://www.libpng.org/pub/png/libpng.html">download</a>). libpng requires
zlib.</dd>
<dt><a class="reference external" href="http://pytz.sourceforge.net/">pytz</a></dt>
<dd>Used to manipulate time-zone aware datetimes. <a class="reference external" href="http://pypi.python.org/pypi/pytz">http://pypi.python.org/pypi/pytz</a></dd>
<dt><a class="reference internal" href="../glossary/index.html#term-freetype"><span class="xref std std-term">freetype</span></a> 2.3 or later</dt>
<dd>library for reading true type font files.</dd>
<dt><a class="reference external" href="http://matplotlib.org/cycler/">cycler</a> 0.9 or later</dt>
<dd>Composable cycle class used for constructing style-cycles</dd>
</dl>
</div>
<div class="section" id="optional-gui-framework">
<h4>Optional GUI framework<a class="headerlink" href="#optional-gui-framework" title="Permalink to this headline">¶</a></h4>
<p>These are optional packages which you may want to install to use
matplotlib with a user interface toolkit. See
<a class="reference internal" href="../faq/usage_faq.html#what-is-a-backend"><span class="std std-ref">What is a backend?</span></a> for more details on the optional matplotlib
backends and the capabilities they provide.</p>
<dl class="docutils">
<dt><a class="reference internal" href="../glossary/index.html#term-tk"><span class="xref std std-term">tk</span></a> 8.3 or later, not 8.6.0 or 8.6.1</dt>
<dd><p class="first">The TCL/Tk widgets library used by the TkAgg backend.</p>
<p class="last">Versions 8.6.0 and 8.6.1 are known to have issues that may result
in segfaults when closing multiple windows in the wrong order.</p>
</dd>
<dt><a class="reference internal" href="../glossary/index.html#term-pyqt"><span class="xref std std-term">pyqt</span></a> 4.0 or later</dt>
<dd>The Qt4 widgets library python wrappers for the Qt4Agg backend</dd>
<dt><a class="reference internal" href="../glossary/index.html#term-pygtk"><span class="xref std std-term">pygtk</span></a> 2.4 or later</dt>
<dd>The python wrappers for the GTK widgets library for use with the
GTK or GTKAgg backend</dd>
<dt><a class="reference internal" href="../glossary/index.html#term-wxpython"><span class="xref std std-term">wxpython</span></a> 2.8 or later</dt>
<dd>The python wrappers for the wx widgets library for use with the
WX or WXAgg backend</dd>
</dl>
</div>
<div class="section" id="optional-external-programs">
<h4>Optional external programs<a class="headerlink" href="#optional-external-programs" title="Permalink to this headline">¶</a></h4>
<dl class="docutils">
<dt><a class="reference external" href="https://www.ffmpeg.org/">ffmpeg</a>/<a class="reference external" href="https://libav.org/avconv.html">avconv</a> or <a class="reference external" href="http://www.mplayerhq.hu/design7/news.html">mencoder</a></dt>
<dd>Required for the animation module to be save out put to movie
formats.</dd>
<dt><a class="reference external" href="http://www.imagemagick.org/">ImageMagick</a></dt>
<dd>Required for the animation module to be able to save to animated gif.</dd>
</dl>
</div>
<div class="section" id="optional-dependencies">
<h4>Optional dependencies<a class="headerlink" href="#optional-dependencies" title="Permalink to this headline">¶</a></h4>
<dl class="docutils">
<dt><a class="reference external" href="http://python-pillow.github.io/">Pillow</a></dt>
<dd>If Pillow is installed, matplotlib can read and write a larger
selection of image file formats.</dd>
<dt><a class="reference external" href="http://www.freedesktop.org/wiki/Software/pkg-config/">pkg-config</a></dt>
<dd>A tool used to find required non-python libraries. This is not strictly
required, but can make installation go more smoothly if the libraries and
headers are not in the expected locations.</dd>
</dl>
</div>
<div class="section" id="required-libraries-that-ship-with-matplotlib">
<h4>Required libraries that ship with matplotlib<a class="headerlink" href="#required-libraries-that-ship-with-matplotlib" title="Permalink to this headline">¶</a></h4>
<dl class="docutils">
<dt><a class="reference internal" href="../glossary/index.html#term-agg"><span class="xref std std-term">agg</span></a> 2.4</dt>
<dd>The antigrain C++ rendering engine. matplotlib links against the
agg template source statically, so it will not affect anything on
your system outside of matplotlib.</dd>
<dt><code class="xref py py-obj docutils literal"><span class="pre">qhull</span></code> 2012.1</dt>
<dd>A library for computing Delaunay triangulations.</dd>
<dt><code class="xref py py-obj docutils literal"><span class="pre">ttconv</span></code></dt>
<dd>truetype font utility</dd>
<dt>six 1.9.0</dt>
<dd>Python 2/3 compatibility library. Do not use this in third-party
code.</dd>
</dl>
</div>
</div>
<div class="section" id="building-on-linux">
<span id="build-linux"></span><h3>Building on Linux<a class="headerlink" href="#building-on-linux" title="Permalink to this headline">¶</a></h3>
<p>It is easiest to use your system package manager to install the dependencies.</p>
<p>If you are on Debian/Ubuntu, you can get all the dependencies
required to build matplotlib with:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">build</span><span class="o">-</span><span class="n">dep</span> <span class="n">python</span><span class="o">-</span><span class="n">matplotlib</span>
</pre></div>
</div>
<p>If you are on Fedora/RedHat, you can get all the dependencies required
to build matplotlib by first installing <code class="docutils literal"><span class="pre">yum-builddep</span></code> and then
running:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">su</span> <span class="o">-</span><span class="n">c</span> <span class="s2">"yum-builddep python-matplotlib"</span>
</pre></div>
</div>
<p>This does not build matplotlib, but it does get the install the
build dependencies, which will make building from source easier.</p>
</div>
<div class="section" id="building-on-osx">
<span id="build-osx"></span><h3>Building on OSX<a class="headerlink" href="#building-on-osx" title="Permalink to this headline">¶</a></h3>
<p>The build situation on OSX is complicated by the various places one
can get the libpng and freetype requirements (darwinports, fink,
/usr/X11R6) and the different architectures (e.g., x86, ppc, universal) and
the different OSX version (e.g., 10.4 and 10.5). We recommend that you build
the way we do for the OSX release: get the source from the tarball or the
git repository and follow the instruction in <code class="file docutils literal"><span class="pre">README.osx</span></code>.</p>
</div>
<div class="section" id="building-on-windows">
<span id="build-windows"></span><h3>Building on Windows<a class="headerlink" href="#building-on-windows" title="Permalink to this headline">¶</a></h3>
<p>The Python shipped from <a class="reference external" href="http://www.python.org">http://www.python.org</a> is compiled with Visual Studio
2008 for versions before 3.3, Visual Studio 2010 for 3.3 and 3.4, and
Visual Studio 2015 for 3.5. Python extensions are recommended to be compiled
with the same compiler.</p>
<p>Since there is no canonical Windows package manager, the methods for building
freetype, zlib, and libpng from source code are documented as a build script
at <a class="reference external" href="https://github.com/jbmohler/matplotlib-winbuild">matplotlib-winbuild</a>.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the matplotlib development team; 2012 - 2014 The matplotlib development team.
Last updated on Dec 19, 2016.
Created using <a
href="http://sphinx-doc.org/">Sphinx</a> 1.4.3.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-55954603-1', 'auto');
ga('send', 'pageview');
</script>
</body>
<footer>
<!--Flipcause Integration v3.0// Flipcause Integration Instructions:
Install the following code block once in the website Header (after <head> tag) -->
<style>
.fc-black_overlay{
display:none; position: fixed; z-index:1000001; top: 0%;left: 0%;width: 100%;height: 100%;
background-color: black; filter: alpha(opacity=50); cursor:pointer; opacity:0.5;
}
.fc-white_content {
opacity:1; display:none; margin-top: -320px; margin-left: -485px; width:970px; height:640px;
position:fixed; top:50%; left:50%; border: none;z-index:1000002;overflow: auto;
}
.fc-main-box{
opacity:1; display:none; margin:15px auto 0 auto; width:930px; position:relative; z-index:1000003;
}
.fc-widget_close{
opacity:1; content:url(http://i1338.photobucket.com/albums/o691/WeCause/X_zpse4a7e538.png);
position:absolute; z-index=1000004; right:-16px; top:-16px; display:block; cursor:pointer;
}
.floating_button{
display: block; margin-top: 0px; margin-left: 0px; width:auto ; height: auto;
position:fixed; z-index:999999; overflow: auto;
}
@keyframes backfadesin {
from { opacity:0; }
to {opacity:.5;}
}
@-moz-keyframes backfadesin {
from { opacity:0; }
to {opacity:.5;}
}
@-webkit-keyframes backfadesin {
from { opacity:0; }
to {opacity:.5;}
}
@-o-keyframes backfadesin {
from { opacity:0; }
to {opacity:.5;}
}
@-ms-keyframes backfadesin {
from { opacity:0; }
to {opacity:.5;}
}
@keyframes fadesin {
0%{ opacity:0; }
50%{ opacity:0; }
75% {opacity: 0; transform: translateY(20px);}
100% {opacity: 1; transform: translateY(0);}
}
@-moz-keyframes fadesin {
0%{ opacity:0; }
50%{ opacity:0; }
75% {opacity: 0; -moz-transform: translateY(20px);}
100% {opacity: 1; -moz-transform: translateY(0);}
}
@-webkit-keyframes fadesin {
0%{ opacity:0; }
50%{ opacity:0; }
75% {opacity: 0; -webkit-transform: translateY(20px);}
100% {opacity: 1; -webkit-transform: translateY(0);}
}
@-o-keyframes fadesin {
0%{ opacity:0; }
50%{ opacity:0; }
75% {opacity: 0; -o-transform: translateY(20px);}
100% {opacity: 1; -o-transform: translateY(0);}
}
@-ms-keyframes fadesin {
0%{ opacity:0; }
50%{ opacity:0; }
75% {opacity: 0; -ms-transform: translateY(20px);}
100% {opacity: 1; -ms-transform: translateY(0);}
}
</style>
<script>
function open_window(cause_id) {
var protocol=String(document.location.protocol);
var new_url;
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
new_url="https://www.flipcause.com/widget/"+cause_id
window.open(new_url);
}
else {
document.getElementById("fc-fade").style.display = "block";
document.getElementById("fc-fade").style.webkitAnimation = "backfadesin 1s";
document.getElementById("fc-fade").style.animation = "backfadesin 1s";
document.getElementById("fc-fade").style.mozAnimation = "backfadesin 1s";
document.getElementById("fc-light").style.display = "block";
document.getElementById("fc-light").style.webkitAnimation = "fadesin 1.5s";
document.getElementById("fc-light").style.animation = "fadesin 1.5s";
document.getElementById("fc-light").style.mozAnimation = "fadesin 1.5s";
document.getElementById("fc-main").style.display = "block";
document.getElementById("fc-main").style.webkitAnimation = "fadesin 1.5s";
document.getElementById("fc-main").style.animation = "fadesin 1.5s";
document.getElementById("fc-main").style.mozAnimation = "fadesin 1.5s";
document.getElementById("fc-close").style.display = "block";
document.getElementById("fc-close").style.webkitAnimation = "fadesin 1.5s";
document.getElementById("fc-close").style.animation = "fadesin 1.5s";
document.getElementById("fc-close").style.mozAnimation = "fadesin 1.5s";
document.getElementById("fc-myFrame").style.display = "block";
document.getElementById("fc-myFrame").style.webkitAnimation = "fadesin 1.5s";
document.getElementById("fc-myFrame").style.animation = "fadesin 1.5s";
document.getElementById("fc-myFrame").style.mozAnimation = "fadesin 1.5s";
document.getElementById("fc-myFrame").src="https://www.flipcause.com/widget/"+cause_id;
}
}
function close_window() {
document.getElementById("fc-fade").style.display="none";
document.getElementById("fc-light").style.display="none";
document.getElementById("fc-main").style.display="none";
document.getElementById("fc-close").style.display="none";
document.getElementById("fc-myFrame").style.display="none";
}
</script>
<div id="fc-fade" class="fc-black_overlay" onclick="close_window()"></div>
<div id="fc-light" class="fc-white_content">
<div id="fc-main" class="fc-main-box">
<div id="fc-close" class="fc-widget_close" onclick="close_window()">
</div><iframe id="fc-myFrame" iframe height="580" width="925" style="border: 0;
border-radius:5px 5px 5px 5px; box-shadow:0 0 8px rgba(0, 0, 0, 0.5);" scrolling="no" src=""></iframe></div>
</div>
<!--END Flipcause Main Integration Code-->
</footer>
</html>