mouseland commited on
Commit
1c5339e
·
verified ·
1 Parent(s): 6aa6ed4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def plot_outlines(img, masks):
43
  ax = fig.add_axes([0.0,0.0,1,1])
44
  ax.set_xlim([0,img.shape[1]])
45
  ax.set_ylim([0,img.shape[0]])
46
- ax.imshow(img[::-1], origin='upper')
47
  if outpix is not None:
48
  for o in outpix:
49
  ax.plot(o[:,0], img.shape[0]-o[:,1], color=[1,0,0], lw=1)
 
43
  ax = fig.add_axes([0.0,0.0,1,1])
44
  ax.set_xlim([0,img.shape[1]])
45
  ax.set_ylim([0,img.shape[0]])
46
+ ax.imshow(img[::-1], origin='upper', aspect = 'auto')
47
  if outpix is not None:
48
  for o in outpix:
49
  ax.plot(o[:,0], img.shape[0]-o[:,1], color=[1,0,0], lw=1)