2017-08-16 12:24:29 +00:00
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
2017-08-17 19:16:19 +00:00
|
|
|
|
2017-08-16 12:24:29 +00:00
|
|
|
def plot_img_mask(img, mask):
|
|
|
|
fig = plt.figure()
|
|
|
|
|
|
|
|
ax1 = fig.add_subplot(1, 3, 1)
|
|
|
|
ax1.imshow(img)
|
|
|
|
|
|
|
|
ax2 = fig.add_subplot(1, 3, 2)
|
|
|
|
ax2.imshow(mask)
|
|
|
|
|
|
|
|
plt.show()
|