Skip to content

Instantly share code, notes, and snippets.

@felipecustodio
Last active June 5, 2018 17:01
Show Gist options
  • Select an option

  • Save felipecustodio/f63029c9267fe1055257075d11a75159 to your computer and use it in GitHub Desktop.

Select an option

Save felipecustodio/f63029c9267fe1055257075d11a75159 to your computer and use it in GitHub Desktop.
Plot big and in high definition
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