Created
October 5, 2015 21:34
-
-
Save alexrutherford/c1fff85e07d4015f6c41 to your computer and use it in GitHub Desktop.
Figure settings for Jupyter notebooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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