Skip to content

Instantly share code, notes, and snippets.

View jakevdp's full-sized avatar

Jake Vanderplas jakevdp

View GitHub Profile
@jakevdp
jakevdp / fill_between.png
Last active August 29, 2015 14:01
fill_between example
fill_between.png
@jakevdp
jakevdp / broken_notebook.ipynb
Created June 3, 2014 20:47
A notebook which contains HTML comments and breaks IPython 2.x
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / script.py
Created July 11, 2014 19:38
Simple mpld3 embedding
import mpld3
import matplotlib.pyplot as plt
plt.plot(range(10))
mpld3.show(template_type='simple', local=False)
@jakevdp
jakevdp / BlockDiagonal.ipynb
Created July 22, 2014 23:51
Block Diagonal Stuff
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / LombScargle.ipynb
Created August 14, 2014 17:23
Lomb-Scargle quick scaling test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / AsteroidVis.ipynb
Last active August 29, 2015 14:06
Asteroid Visualization Post
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / google_magic.ipynb
Last active August 29, 2015 14:06
Google magic for IPython
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / discrete_cmap.py
Last active June 1, 2025 11:15
Small utility to create a discrete matplotlib colormap
# By Jake VanderPlas
# License: BSD-style
import matplotlib.pyplot as plt
import numpy as np
def discrete_cmap(N, base_cmap=None):
"""Create an N-bin discrete colormap from the specified input map"""
@jakevdp
jakevdp / CategoricalCMAP.ipynb
Last active June 8, 2025 22:34
Example of a categorical color map in matplotlib
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / kde.ipynb
Created January 8, 2015 00:01
Simple KDE example with scikit-learn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.