Skip to content

Instantly share code, notes, and snippets.

@larsyencken
Created February 1, 2016 12:46
Show Gist options
  • Save larsyencken/e71ae3957c18829d9536 to your computer and use it in GitHub Desktop.
Save larsyencken/e71ae3957c18829d9536 to your computer and use it in GitHub Desktop.
IPython notebook theming with Seaborn
# avoid false precision on floating point numbers
%precision 3
pd.set_option('display.precision', 3)
# use seaborn for nice theming
import seaborn as sns
# up the font sizes on graphs
sns.set_context("notebook", font_scale=1.5, rc={"lines.linewidth": 2.5})
# use a dark grid background (the default)
sns.set_style('darkgrid')
# use a gentle colour palette
sns.set_palette('muted')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment