ebgoldstein commited on
Commit
39a4a2b
·
1 Parent(s): e10000f

change plotting

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -49,9 +49,11 @@ def FRFsegment(input_img):
49
  pred = resize(mask, (w, h), preserve_range=True, clip=True)
50
 
51
  #overlay plot
52
- p = plt.imshow(input_img,cmap='gray')
53
- p = plt.imshow(pred, alpha=0.4)
54
- p = plt.axis("off")
 
 
55
  return plt
56
 
57
 
 
49
  pred = resize(mask, (w, h), preserve_range=True, clip=True)
50
 
51
  #overlay plot
52
+ plt.clf()
53
+ plt.imshow(input_img,cmap='gray')
54
+ plt.imshow(pred, alpha=0.4)
55
+ plt.axis("off")
56
+ plt.margins(x=0, y=0)
57
  return plt
58
 
59