12345678910111213141516171819202122232425262728293031323334353637 |
- x_start = 500
- x_end = 1000
- y_start = 4800
- y_end = 5300
- plt.subplots(ncols=3, nrows=2, figsize=(16, 8))
- mt = np.ma.array(np.ones((x_end-x_start, y_end-y_start)),
- mask=((im_tiny[x_start:x_end, y_start:y_end, 0]/np.max(im_tiny)+im_cada[x_start:x_end, y_start:y_end])==0))
- p151 = plt.subplot(231)
- i151 = p151.imshow(im_2015[x_start:x_end, y_start:y_end, 3])
- plt.colorbar(i151)
- p152 = plt.subplot(233)
- i152 = p152.imshow(im_tiny[x_start:x_end, y_start:y_end, 0])
- plt.colorbar(i152)
- p153 = plt.subplot(232)
- i153 = p153.imshow(im_2015[x_start:x_end, y_start:y_end, 3])
- p153.imshow(mt, cmap=cm.bwr, alpha=0.3, vmin=0, vmax=1)
- plt.colorbar(i153)
- p171 = plt.subplot(234)
- i171 = p171.imshow(im_2017[x_start:x_end, y_start:y_end, 3])
- plt.colorbar(i171)
- p172 = plt.subplot(236)
- i172 = p172.imshow(im_cada[x_start:x_end, y_start:y_end])
- plt.colorbar(i172)
- p173 = plt.subplot(235)
- i173 = p173.imshow(im_2017[x_start:x_end, y_start:y_end, 3])
- p173.imshow(mt, cmap=cm.bwr, alpha=0.3, vmin=0, vmax=1)
- plt.colorbar(i173)
- plt.show()
|