Update app.py
Browse files
app.py
CHANGED
@@ -32,10 +32,10 @@ def fig2img(fig):
|
|
32 |
fig.savefig(buf)
|
33 |
buf.seek(0)
|
34 |
pil_img = Image.open(buf)
|
35 |
-
basewidth =
|
36 |
wpercent = (basewidth/float(pil_img.size[0]))
|
37 |
hsize = int((float(pil_img.size[1])*float(wpercent)))
|
38 |
-
img = pil_img.resize((basewidth,hsize), Image.
|
39 |
return img
|
40 |
|
41 |
|
|
|
32 |
fig.savefig(buf)
|
33 |
buf.seek(0)
|
34 |
pil_img = Image.open(buf)
|
35 |
+
basewidth = 750
|
36 |
wpercent = (basewidth/float(pil_img.size[0]))
|
37 |
hsize = int((float(pil_img.size[1])*float(wpercent)))
|
38 |
+
img = pil_img.resize((basewidth,hsize), Image.Resampling.LANCZOS)
|
39 |
return img
|
40 |
|
41 |
|