https://github.com/olgabot/prettyplotlib
Painlessly create beautiful matplotlib plots.
https://github.com/olgabot/prettyplotlib
Last synced: about 1 month ago
JSON representation
Painlessly create beautiful matplotlib plots.
- Host: GitHub
- URL: https://github.com/olgabot/prettyplotlib
- Owner: olgabot
- License: mit
- Created: 2013-07-18T14:39:58.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2019-01-31T16:40:48.000Z (about 6 years ago)
- Last Synced: 2025-02-28T03:04:49.333Z (about 2 months ago)
- Language: Python
- Homepage: olgabot.github.io/prettyplotlib
- Size: 27.4 MB
- Stars: 1,696
- Watchers: 84
- Forks: 148
- Open Issues: 11
-
Metadata Files:
- Readme: README
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
- fintech-awesome-libraries - prettyplotlib - Painlessly create beautiful matplotlib plots. (Data Visualization / General Purposes)
README
# Announcement
Thank you to everyone who has used `prettyplotlib` and made it what it is today! Unfortunately, I no longer have the bandwidth to maintain prettyplotlib. I recommend using [`seaborn`](https://github.com/mwaskom/seaborn). Using `seaborn`, to get the `prettyplotlib` style, do:
import seaborn as sns
sns.set(style='ticks', palette='Set2')And to remove "chartjunk", do:
sns.despine()
If you have discrete pull requests, I will accept them, but I personally will no longer fix bugs.
If you are a biological scientist looking for ways to analyze your big-ish (20+ samples) data, check out my main project, [`flotilla`](https://github.com/YeoLab/flotilla).
[](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`
matplotlib
defaultplot
![]()
prettyplotlib
defaultplot
![]()
matplotlib
defaultscatter
![]()
prettyplotlib
defaultscatter
![]()
matplotlib
defaultbar
![]()
prettyplotlib
defaultbar
![]()
matplotlib
defaulthist
![]()
prettyplotlib
defaulthist
matplotlib
defaulthist
with grid![]()
prettyplotlib
defaulthist
with grid
matplotlib
defaultboxplot
![]()
prettyplotlib
defaultboxplot
![]()
matplotlib
defaultpcolormesh
positive and negative data![]()
prettyplotlib
defaultpcolormesh
positive and negative data![]()
matplotlib
defaultpcolormesh
positive data only![]()
prettyplotlib
defaultpcolormesh
positive data only![]()
matplotlib pcolormesh
negative-valued data with labels![]()
prettyplotlib pcolormesh
negative-valued data with labels![]()
### Quotes
_"Dis ain't no **ugly**plotlib"_ - Anonymous