Skip to content

Commit

Permalink
added save button, increased dpi of temp graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewToolsDev committed Nov 8, 2020
1 parent 429e63d commit 687d846
Show file tree
Hide file tree
Showing 2 changed files with 295 additions and 13 deletions.
2 changes: 1 addition & 1 deletion covidgrapher.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def make_covid_graph(regions = None, smooth = True, filename = None, datakey = "
return filename
else:
tf = TemporaryFile("w+b", suffix = ".png")
plt.savefig(tf, format = "png", dpi = 300)
plt.savefig(tf, format = "png", dpi = 600)
if show: plt.show()
plt.clf()
return tf #Returns a buffer that can be opened as an image with PIL.open()
Expand Down
Loading

0 comments on commit 687d846

Please sign in to comment.