Skip to content

Instantly share code, notes, and snippets.

@mwaskom
mwaskom / ebola.ipynb
Created September 8, 2014 18:50
This is not good
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / jointplot_scatter_size
Created November 7, 2014 19:51
Two ways to set a custom scatterplot point size in a jointplot.
{
"metadata": {
"name": "",
"signature": "sha256:d128f2b899d9bb28f860c93f2f35036ff38215268ea8eb13ec2babcda6d1b782"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@mwaskom
mwaskom / heatmap_and_widgets
Last active August 29, 2015 14:09
Simple example of using interactive colormap widgets with seaborn.heatmap and seaborn.jointplot
{
"metadata": {
"name": "",
"signature": "sha256:53e24f8fa72ede664ac3169fd624310e2e2b4ba79d3a0d7b84606836c2575db1"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@mwaskom
mwaskom / scatter_overlap.ipynb
Created December 3, 2014 05:39
Testing function to infer scatterplot point overlap
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / stacked_hist_facets
Created December 9, 2014 16:19
Recipe for plotting stacked histograms in a FacetGrid
{
"metadata": {
"name": "",
"signature": "sha256:054600adb3f4b0da45dd7e390c295de63004db09b22d9a39ce2f84565842e805"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@mwaskom
mwaskom / bad_driver_dotplot.ipynb
Created January 21, 2015 18:53
Implementing Karl Broman's interactive car crash dotplot with seaborn/ipython interact
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / new_matplotlib_colormap.ipynb
Last active August 29, 2015 14:15
Quick proposal of a sequential colormap that rotates through blue - purple - red - yellow
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / interactive_colormap_chooser.ipynb
Created February 18, 2015 17:30
A simple IPython widget to interactively design an Hcl colormap
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / parcelpicker.py
Last active August 29, 2015 14:16
PySurfer extension to interactively select a set of surface parcels
from surfer import Brain
class ParcelPicker(Brain):
"""Extension to a PySurfer Brain object for selecting regions.
Left click on a parcel to select it, right click to unselect it.
A ``set()`` object with currently selected parcels is stored at
``ParcelPicker.parcels``.
@mwaskom
mwaskom / coordinate_surface_normalization.ipynb
Last active August 29, 2015 14:16
Surface-based coordinate normalization
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.