Skip to content

Instantly share code, notes, and snippets.

@eddiesmo
Created March 2, 2017 11:19
Show Gist options
  • Save eddiesmo/90af00a269fd3d60eb6c68c50779cca7 to your computer and use it in GitHub Desktop.
Save eddiesmo/90af00a269fd3d60eb6c68c50779cca7 to your computer and use it in GitHub Desktop.
Jupyter notebook
# imports for jupyter notebook
import matplotlib.pyplot as plt
%matplotlib inline # display plots in this notebook
# set display defaults
plt.rcParams['figure.figsize'] = (10, 10) # large images
plt.rcParams[
'image.interpolation'] = 'nearest' # don't interpolate: show square pixels
plt.rcParams[
'image.cmap'] = 'gray' # use grayscale output rather than a (potentially misleading) color heatmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment