Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Tools for Matplotlib

Project Description

As the name implies, mpltools provides tools for working with matplotlib. For the most part, these tools are only loosely-connected in functionality, so the best way to get started is to look at the example gallery.



The style-sheet functionality has been integrated into Matplotlib 1.4. As a result, this module will be removed in a future release. (See PR 2236, matplotlib 1.4 release notes.)

This package got its start by implementing plotting “styles”—essentially stylesheets that are similar to matplotlibrc files. Unfortunately, the syntax for an mplstyle file is slightly different than matplotlibrc files because we use ConfigObj to parse them.

Style names should be specified as sections in a “mplstyle” file. A simple mplstyle file would look like:


text.fontsize = 12
figure.dpi = 150


text.fontsize = 10 = 'serif'

mpltools searches the current working directory and your home directory for mplstyle files. To use a style, you just add:

>>> from mpltools import style
>>> style.use('style1')

There are a number of pre-defined styles located in mpltools/style/. To list all available styles, use:

>>> print style.available


For more details about use and installation, see the mpltools documentation. If you’re short on time, just check out the Getting Started section or the example gallery.


Installation from source

mpltools may be installed globally using:

$ git clone
$ cd mpltools
$ python install

or locally using:

$ python install --prefix=${HOME}

If you prefer, you can use it without installing, by simply adding this path to your PYTHONPATH variable and compiling the extensions:

$ python build_ext -i


New BSD (a.k.a. Modified BSD). See LICENSE in this directory for details.

Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
mpltools-0.2.0.tar.gz (27.5 kB) Copy SHA256 Checksum SHA256 Source Feb 25, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting