Last active
June 5, 2018 17:01
-
-
Save felipecustodio/f63029c9267fe1055257075d11a75159 to your computer and use it in GitHub Desktop.
Plot big and in high definition
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
| sns.set() | |
| sns.set_context("poster") | |
| # plot something | |
| figure = plt.gcf() # get current figure | |
| # 800 x 600 | |
| figure.set_size_inches(8, 6) | |
| # save with high DPI | |
| plt.savefig("plots/plot.png", dpi=100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment