Skip to content

Instantly share code, notes, and snippets.

@alexrutherford
Created October 5, 2015 21:34
Show Gist options
  • Select an option

  • Save alexrutherford/c1fff85e07d4015f6c41 to your computer and use it in GitHub Desktop.

Select an option

Save alexrutherford/c1fff85e07d4015f6c41 to your computer and use it in GitHub Desktop.
Figure settings for Jupyter notebooks
def setFigSize(dim=(16.5,5.5)):
fig = matplotlib.pyplot.gcf()
fig.set_size_inches(dim[0],dim[1])
setFigSize(dim=(10,10))
# Just call it before you plot (dimension measured in inches)
%config InlineBackend.figure_format = 'svg'
# Also, you get crisp vector images if you set this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment