Skip to content

Instantly share code, notes, and snippets.

@mamrehn
Created April 26, 2017 13:53
Show Gist options
  • Save mamrehn/c9e5a61ca182c750b70d1e630f7f1512 to your computer and use it in GitHub Desktop.
Save mamrehn/c9e5a61ca182c750b70d1e630f7f1512 to your computer and use it in GitHub Desktop.
xkcd neon colors for matplotlib/seaborn
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAV0AAABECAYAAAAiJuZQAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAAWhJREFUeJzt2jFKQ0EARdH5QsAmjbgGa3vLbMVduRbt7K1dQ7o0gYDj\nCtTq3w/mnHaaV12GYZY55xwAJG62HgBwTUQXICS6ACHRBQiJLkDo1+iev6oZANdh+evL2O6zmtK7\nPIyxH/utZ6zmNE5j3rxsPWMVb3fP43Bcxuv9//zxeDguY9w+bT1jPef38TF2W69YzeO4/HjmeQEg\nJLoAIdEFCIkuQEh0AUKiCxASXYCQ6AKERBcgJLoAIdEFCIkuQEh0AUKiCxASXYCQ6AKERBcgJLoA\nIdEFCIkuQEh0AUKiCxASXYCQ6AKERBcgJLoAIdEFCIkuQEh0AUKiCxASXYCQ6AKERBcgJLoAIdEF\nCIkuQEh0AUKiCxASXYCQ6AKERBcgJLoAIdEFCIkuQEh0AUKiCxASXYCQ6AKERBcgJLoAIdEFCIku\nQEh0AULLnHNuPQLgWrjpAoREFyAkugAh0QUIiS5ASHQBQt9wox1wNiU3CAAAAABJRU5ErkJggg==\n",
"text/plain": [
"<matplotlib.figure.Figure at 0x49ce0b8>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%pylab inline\n",
"from seaborn import xkcd_rgb, xkcd_palette, palplot\n",
"\n",
"neon_palette = xkcd_palette([col for col in xkcd_rgb.keys() if col.startswith('neon')])\n",
"\n",
"palplot(neon_palette)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment