Skip to main content

Painlessly create beautiful default `matplotlib` plots.

Project description

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``
----------------------------
.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/plot_matplotlib_default.png
:width: 45%
.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/plot_prettyplotlib_default.png
:target: https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#plot-lines-eg-time-series-with-a-legend"
:width: 45%

.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/scatter_matplotlib_default.png
:width: 45%
.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/scatter_prettyplotlib_default.png
:target: https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#scatter-points
:width: 45%

.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/bar_matplotlib_default.png
:width: 45%
.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/bar_prettyplotlib_default.png
:target: https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#bar
:width: 45%

.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/hist_matplotlib_default.png
:width: 45%
.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/hist_prettyplotlib_default.png
:target: https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#hist
:width: 45%

.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/hist_matplotlib_grid.png
:width: 45%
.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/hist_prettyplotlib_grid.png
:target: https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#back-to-matplotlib-style-scatterplots
:width: 45%

.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/boxplot_matplotlib_default.png
:width: 45%
.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/boxplot_prettyplotlib_default.png
:target: https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#boxplot
:width: 45%

.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_matplotlib_default.png
:width: 45%
.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_prettyplotlib_default.png
:target: https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#pcolormesh-heatmaps
:width: 45%

.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_matplotlib_positive_default.png
:width: 45%
.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_prettyplotlib_positive.png
:target: https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#pcolormesh-positive-only-data
:width: 45%

.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_matplotlib_negative_labels.png
:width: 45%
.. image:: https://raw.github.com/olgabot/prettyplotlib/master/ipython_notebooks/pcolormesh_prettyplotlib_negative_labels.png
:target: https://github.com/olgabot/prettyplotlib/wiki/exampleswith-code#pcolormesh-positive-only-data
:width: 45%

Quotes
~~~~~~

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

.. |Build Status| image:: https://travis-ci.org/olgabot/prettyplotlib.png?branch=master
:target: https://travis-ci.org/olgabot/prettyplotlib

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.5.tar.gz (698.0 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.5.macosx-10.9-x86_64.tar.gz (19.4 kB view details)

Uploaded Source

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

Uploaded Source

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

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for prettyplotlib-0.1.5.tar.gz
Algorithm Hash digest
SHA256 144553489f8b729deb3423ee98189b8f2cfd6577a0c4cbb04ca0da08f39c44f2
MD5 4de2eccf22f1bb8c52b07114d18182dd
BLAKE2b-256 6e54203558a92707434d356bf7bbbe00144d449baf26ebc4dd0093ae03361f55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prettyplotlib-0.1.5.macosx-10.9-x86_64.tar.gz
Algorithm Hash digest
SHA256 8180061c1c08259e01b97a7363569eab2eb5d7e9f0f6248ae191d8674296838e
MD5 7d85b0f117c11a8ab6815b0c49ea3635
BLAKE2b-256 fa94eb899f47e18defd07f01cde581dd08fdf098e2308cca7bfb61d5fc894f3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prettyplotlib-0.1.5.macosx-10.9-x86_64.exe
Algorithm Hash digest
SHA256 289e415a63a76895162a7869fa5b91483c4d41058e3a8b21ef42091fd61bd33f
MD5 4174e679c3a9f8eca6068d7711e17c93
BLAKE2b-256 43b01bbeb9112c06c378eba5015f257d726499cb4c9847897b3c66598f6b9da9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prettyplotlib-0.1.5-py2.7.egg
Algorithm Hash digest
SHA256 5d93293a91136edcd52a17a7cc5be876ffa881c0a4392370cd9109e9ac028154
MD5 d7c1a85a8ed2d1dd36c5afe0be04fa47
BLAKE2b-256 8e9cb8f91df38d60f24bc242f4694edf135f38dc44ce3e42a216d4c2c403561f

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