Skip to main content

Painlessly create beautiful default `matplotlib` plots.

Project description

[![Build Status](https://travis-ci.org/olgabot/prettyplotlib.png?branch=master)](https://travis-ci.org/olgabot/prettyplotlib)

prettyplotlib
=============

Python matplotlib-enhancer library which painlessly creates beautiful default `matplotlib`
plots. Inspired by [Edward Tufte](http://www.edwardtufte.com/tufte/)'s work on information design and [Cynthia Brewer](http://www.personal.psu.edu/cab38/)'s work on [color perception](http://colorbrewer2.org/).

I truly believe that scientific progress is impeded when improper data visualizations are used. I spent a lot of time tweaking my figures to make them more understandable, and realized the scientific world could be a better place if the default parameters for plotting libraries followed recent advances in information design research. And thus `prettyplotlib` was born.

Requirements:

* [`matplotlib`](http://matplotlib.org/). Can be installed via `pip install matplotlib` or `easy_install matplotlib`
* [`brewer2mpl`](https://github.com/jiffyclub/brewer2mpl). Can be installed via `pip install brewer2mpl` or `easy_install brewer2mpl`

## Comparison to `matplotlib`

<table>
<tr height="207" valign="top">
<td><code>matplotlib</code> default <code>plot</code><br><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/plot_matplotlib_default.png" height="202"></td>
<td><code>prettyplotlib</code> default <code>plot</code><br><a href=https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#plot-lines-eg-time-series-with-a-legend"><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/plot_prettyplotlib_default.png" height="202"></a></td>
</tr>
<tr height="207" valign="top">
<td><code>matplotlib</code> default <code>scatter</code><br><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/scatter_matplotlib_default.png" height="202"></td>
<td><code>prettyplotlib</code> default <code>scatter</code><br><a href="https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#scatter-points"><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/scatter_prettyplotlib_default.png" height="202"></a></td>
</tr>
<tr height="207" valign="top">
<td><code>matplotlib</code> default <code>bar</code><br><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/bar_matplotlib_default.png" height="202"></td>
<td><code>prettyplotlib</code> default <code>bar</code><br><a href=https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#bar><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/bar_prettyplotlib_default.png" height="202"></a></td>
</tr>
<tr height="207" valign="top">
<td><code>matplotlib</code> default <code>hist</code><br><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/hist_matplotlib_default.png" height="202"></td>
<td><code>prettyplotlib</code> default <code>hist</code><br><a href="https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#hist"><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/hist_prettyplotlib_default.png" height="202"></a></td>
</tr>
<tr height="207" valign="top">
<td><code>matplotlib</code> default <code>hist</code><br>with grid<br><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/hist_matplotlib_grid.png" height="202"></td>
<td><code>prettyplotlib</code> default <code>hist</code><br>with grid<br><a href="https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#back-to-matplotlib-style-scatterplots"><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/hist_prettyplotlib_grid.png" height="202"></a></td>
</tr>
<tr height="207" valign="top">
<td><code>matplotlib</code> default <code>boxplot</code><br><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/boxplot_matplotlib_default.png" height="202"></td>
<td><code>prettyplotlib</code> default <code>boxplot</code><br><a href="https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#boxplot"><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/boxplot_prettyplotlib_default.png" height="202"></a></td>
</tr>
<tr height="207" valign="top">
<td><code>matplotlib</code> default <code>pcolormesh</code><br>positive and negative data<br><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_matplotlib_default.png" height="202"></td>
<td><code>prettyplotlib</code> default <code>pcolormesh</code><br>positive and negative data<br><a href="https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#pcolormesh-heatmaps"><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_prettyplotlib_default.png" height="202"></a></td>
</tr>
</tr> <tr height="207" valign="top">
<td><code>matplotlib</code> default <code>pcolormesh</code><br>positive data only<br><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_matplotlib_positive_default.png" height="202"></td>
<td><code>prettyplotlib</code> default <code>pcolormesh</code><br>positive data only<br><a href="https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#pcolormesh-positive-only-data"><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_prettyplotlib_positive.png" height="202"></a></td>
</tr>
</tr> <tr height="207" valign="top">
<td><code>matplotlib pcolormesh</code><br> negative-valued data with labels<br><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_matplotlib_negative_labels.png" height="202"></td>
<td><code>prettyplotlib pcolormesh</code><br> negative-valued data with labels<br><a href="https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#pcolormesh-positive-only-data"><img src="https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_prettyplotlib_negative_labels.png" height="202"></a></td>
</tr>
</table>

### Quotes

_"Dis ain't no **ugly**plotlib"_ - Anonymous

Project details


Download files

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

Source Distribution

prettyplotlib-0.1.4.tar.gz (11.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

prettyplotlib-0.1.4.macosx-10.9-x86_64.tar.gz (16.4 kB view details)

Uploaded Source

prettyplotlib-0.1.4.macosx-10.9-x86_64.exe (84.5 kB view details)

Uploaded Source

prettyplotlib-0.1.4-py2.7.egg (36.6 kB view details)

Uploaded Egg

File details

Details for the file prettyplotlib-0.1.4.tar.gz.

File metadata

  • Download URL: prettyplotlib-0.1.4.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for prettyplotlib-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f0c3b00fd091069430b860ceb9b6b23c2c07f12e82a6139e1a184371203b970e
MD5 90db05bcf4d7bae810bd5651b916dde5
BLAKE2b-256 675e23b35abfc94980916116123dad067a1bfec4cc9a3d8b20daf02c47836ce1

See more details on using hashes here.

File details

Details for the file prettyplotlib-0.1.4.macosx-10.9-x86_64.tar.gz.

File metadata

File hashes

Hashes for prettyplotlib-0.1.4.macosx-10.9-x86_64.tar.gz
Algorithm Hash digest
SHA256 2422f667e19a108f18e97da2882d21ed09dd05f906f921995c3bb0342ff62dc6
MD5 ff090440b89aba93f008486a807ffad4
BLAKE2b-256 3b304ee1183c33c80fd981d3e8354cedd1cf19084022806c045de8bb3d5ba95b

See more details on using hashes here.

File details

Details for the file prettyplotlib-0.1.4.macosx-10.9-x86_64.exe.

File metadata

File hashes

Hashes for prettyplotlib-0.1.4.macosx-10.9-x86_64.exe
Algorithm Hash digest
SHA256 1b036484b34205aecf93d26e3474c7511f5c14bd670227f576614c79ffb3af36
MD5 2676f364fd0cbbd6a6d8a1367d4e9837
BLAKE2b-256 453b3086b1d51a23a56e1183ca69dd755ee724262d25aa9ec639394211fb6311

See more details on using hashes here.

File details

Details for the file prettyplotlib-0.1.4-py2.7.egg.

File metadata

File hashes

Hashes for prettyplotlib-0.1.4-py2.7.egg
Algorithm Hash digest
SHA256 5cc4b77a42a65e51c1b1ed13bc969b4b6ecde0a4a54ee3c77c14373c1f0e7161
MD5 3dcb99a9093cd07e3815cdc7abef5197
BLAKE2b-256 29c3fed76f6489ebdea18e89828c59d0c9178fdb75582537d274debb34feb263

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page