• Stars
    star
    1,653
  • Rank 28,086 (Top 0.6 %)
  • Language
    Python
  • License
    MIT License
  • Created about 11 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Painlessly create beautiful matplotlib plots.

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. 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.

Build Status

prettyplotlib

Python matplotlib-enhancer library which painlessly creates beautiful default matplotlib plots. Inspired by Edward Tufte's work on information design and Cynthia Brewer's work on color perception.

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. Can be installed via pip install matplotlib or easy_install matplotlib
  • brewer2mpl. Can be installed via pip install brewer2mpl or easy_install brewer2mpl

Comparison to matplotlib

matplotlib default plot
prettyplotlib default plot
matplotlib default scatter
prettyplotlib default scatter
matplotlib default bar
prettyplotlib default bar
matplotlib default hist
prettyplotlib default hist
matplotlib default hist
with grid
prettyplotlib default hist
with grid
matplotlib default boxplot
prettyplotlib default boxplot
matplotlib default pcolormesh
positive and negative data
prettyplotlib default pcolormesh
positive and negative data
matplotlib default pcolormesh
positive data only
prettyplotlib default pcolormesh
positive data only
matplotlib pcolormesh
negative-valued data with labels
prettyplotlib pcolormesh
negative-valued data with labels

Quotes

"Dis ain't no uglyplotlib" - Anonymous

More Repositories

1

rna-seq-diff-exprn

RNA-Sequencing data differential expression analysis pipeline. Performs: genome coverage (via bedtools and HTSeq), generates Circos code and plots, differential expression (via DESeq and NOISeq), structural variant detection (e.g. fusion genes, via SVDetect) and differential exon usage (via DEXSeq).
R
52
star
2

awesome-expectations

Examples of great academic lab expectations, manuals, policies for joining and being in the lab
50
star
3

cshl-singlecell-2017

Single Cell Analysis course at Cold Spring Harbor Laboratory 2017
Jupyter Notebook
23
star
4

sciencemeetproductivity.tumblr.com

backup of old blog at sciencemeetproductivity.tumblr.com
16
star
5

cheatsheets

Quick lookup documents for commonly used tools
9
star
6

abi2fastq

abi2fastq is a small utility to convert Sanger sequencing reads in .abi (applied biosystems) format to FASTQ
Python
9
star
7

sj2psi

Convert RNA-STAR aligner "SJ.out.tab" files to "Percent spliced-in" (Psi) scores
Python
9
star
8

kvector

kvector is a small utility for converting motifs to kmer vectors to compare motifs of different lengths
Jupyter Notebook
9
star
9

twerk

Network analysis of correlations (WGCNA-inspired)
Python
6
star
10

dissertation

Computational analysis of single-cell alternative splicing: A dissertation submitted in partial satisfaction of the requirements for the degree Doctor of Philosophy in Bioinformatics and Systems Biology
TeX
5
star
11

dotfiles

Collection of rc files for easy portability
Emacs Lisp
4
star
12

codeneuro_sf2015_dataset_packaging

Notes from dataset packaging subgroup at CodeNeuro
4
star
13

poshsplice

PoshSplice is a collection of scripts and functions used to annotate splicing events, exons, and their functional consequences
Python
4
star
14

macosko2015

Expression data for Macosko et al, "Highly Parallel Genome-wide Expression Profiling of Individual Cells Using Nanoliter Droplets," Cell (2015)
Jupyter Notebook
4
star
15

wasabiplot

WasabiPlot is a flexible coverage and junction read plotter that heavily borrows from MISO's SashimiPlot
Python
3
star
16

gscripts

General Use Scripts and Helper functions
R
2
star
17

bonvoyage

Transform percentage-based units into a 2d space to evaluate changes in distribution with both magnitude and direction.
Python
2
star
18

olgabot.github.io-source-deprecated

Source code for blog, autodeployed using Travis-CI
Jupyter Notebook
2
star
19

permission-letters

LaTeX template for creating co-author permission letters for UCSD dissertation submissions
Jupyter Notebook
2
star
20

segerstolpe_palasantza2016

Expression and metadata for Segerstolpe + Palasantza et al, "Single-Cell Transcriptome Profiling of Human Pancreatic Islets in Health and Type 2 Diabetes" in Cell Metabolism (2016)
Jupyter Notebook
1
star
21

open-women

List of women in open source, open science, open access fields
1
star
22

pycon2014_dataviz

Computational data visualization. Presented at PyCon 2014 lightning talks.
1
star
23

circle-time

Circular graphic representation of time spent during the day
Python
1
star
24

psytoolkit-analysis

Analyze psytoolkit data
Jupyter Notebook
1
star
25

pydata2014biodata

Slides and ipython notebooks accompanying talk given at PyData NYC 2014
1
star
26

pyhomer

Utility functions to work with output from the HOMER motif finding program
Python
1
star
27

rnaseek

Scripts and modules for parsing and aggregating output files from RNA-sequencing data
Python
1
star
28

nextflow-each-metadata-error

Repo to test nextflow `each` directive with metadata
Shell
1
star