matplotlib: plotting with Python
Python C++ Objective-C C JavaScript Jupyter Notebook Other
Latest commit 1bfc755 Jan 16, 2017 @tacaswell tacaswell REL: v2.0.0
Major release of Matplotlib

This release completely overhauls the default style of the plots.

Highlights include:

 - 'viridis' is default color map instead of jet.
 - Modernized the default color cycle.
 - Many more functions respect the color cycle.
 - Line dash patterns scale with linewidth.
 - Change default font to DejaVu, now supports most western.
   alphabets (including Greek, Cyrillic and latin with diacritcs),
   math symbols and emoji out of the box.
 - Faster text rendering.
 - Improved auto-limits.
 - Ticks out and only on the right and bottom spines by default.
 - Improved auto-ticking, particularly for log scales and dates.
 - Improved image support (`imshow` respects scales and eliminated a
   class of artifacts).
Permalink
Failed to load latest commit information.
.travis Merge pull request #5306 from mdboom/local-freetype Nov 5, 2015
LICENSE LEG: include license for files derived from PIL Oct 11, 2016
doc DOC: fix up some links Jan 17, 2017
examples Merge pull request #7821 from vollbier/remove_showcase_piechart Jan 16, 2017
extern Fix misleading indentation warnings in Agg code. Nov 25, 2016
lib Partial backport of pull request #7845 from vollbier/specgram_overlap… Jan 17, 2017
release/win32/data Merged from main/master Aug 25, 2011
src Merge pull request #7782 from AdamWill/more-be-int-types Jan 11, 2017
tools DOC: lots of small fixes, add description of tarball issue Dec 18, 2016
unit Merge pull request #5706 from jayvdb/unit-threading_test-invalid-syntax Dec 21, 2015
.gitattributes Made use of versioneer, with a few modifications. Sep 14, 2015
.gitignore MNT: add auto-generated rst files to gitignore Sep 25, 2016
.mailmap Update .mailmap based on feedback. Oct 1, 2016
.travis.yml Merge pull request #7779 from tacaswell/API_DOC_backport_no_imag_build Jan 13, 2017
CHANGELOG Merge pull request #5485 from ianthomas23/5477_contour_decreasing_levels Nov 17, 2015
CONTRIBUTING.md More minor fixes based on feedback in the PR. Nov 19, 2012
INSTALL DOC: fix up some links Jan 17, 2017
MANIFEST.in BLD: include tests.py in sdist Jan 12, 2016
Makefile Change matplotlib's nose dependency to a test dependency Jul 11, 2015
README.osx Merge pull request #4465 from tacaswell/doc_brew_pkgconfig Jun 17, 2015
README.rst Merge pull request #7381 from matplotlib/readme-updates Nov 3, 2016
boilerplate.py Add missing deprecation; spell out "keyword argument" Nov 26, 2016
distribute_setup.py Fix PEP8 coding style violations Dec 16, 2014
doc-requirements.txt DOC: Disable build against Sphinx 1.5.0. Dec 5, 2016
license.py Fix PEP8 coding style violations Dec 16, 2014
matplotlibrc.template STY: fix poor date-time format defaults Jan 13, 2017
setup.cfg.template DOC: minor doc tweaks Jan 13, 2017
setup.py Merge pull request #7713 from cdeil/patch-1 Dec 31, 2016
setupext.py Merge pull request #7757 from StephanErb/packaging_size Jan 10, 2017
test_only.py Fix memory leaks in the test suite. Jul 15, 2014
tests.py MAINT: add ability to specify recursionlimit Jan 16, 2017
tox.ini Change matplotlib's nose dependency to a test dependency Jul 11, 2015
versioneer.py Made use of versioneer, with a few modifications. Sep 14, 2015

README.rst

matplotlib

matplotlib is a Python 2D plotting library which produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms. matplotlib can be used in Python scripts, the Python and IPython shell (ala MATLAB or Mathematica), web application servers, and various graphical user interface toolkits.

Home page

Installation

For installation instructions and requirements, see the INSTALL file or the install documentation. If you think you may want to contribute to matplotlib, check out the guide to working with the source code.

Testing

After installation, you can launch the test suite:

python tests.py

Or from the Python interpreter:

import matplotlib
matplotlib.test()

Consider reading http://matplotlib.org/devel/coding_guide.html#testing for more information. Note that the test suite requires nose and on Python 2.7 mock which are not installed by default. Please install with pip or your package manager of choice.

Contact

matplotlib's communication channels include active mailing lists:

The first is a good starting point for general questions and discussions.

Join the chat at https://gitter.im/matplotlib/matplotlib

Contribute

You've discovered a bug or something else you want to change - excellent!

You've worked out a way to fix it – even better!

You want to tell us about it – best of all!

Start at the contributing guide!