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.6.tar.gz (698.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for prettyplotlib-0.1.6.tar.gz
Algorithm Hash digest
SHA256 b5e4053e3323885fed565817f3bb9bed2cdffc1a00f6e3d1c32688d4542cb116
MD5 ea88ea66d73fd636ae045448c0b81422
BLAKE2b-256 734de510a7ffcf95434706c234ae636fed81934d85daf503310ecc4fb7f7102b

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