Commit
·
a77476d
1
Parent(s):
d414425
Update channel_functions.py
Browse files- channel_functions.py +2 -2
channel_functions.py
CHANGED
|
@@ -28,7 +28,7 @@ def individual_channel_image(img_arr, channel= 'r', ax=None):
|
|
| 28 |
plt.imshow(cv2.cvtColor(img_arr,cv2.COLOR_BGR2RGB))
|
| 29 |
else:
|
| 30 |
plt.imshow(plot_arr, cmap = cmap)
|
| 31 |
-
plt.colorbar(orientation= 'vertical', shrink = 0.7, pad = 0.01, fraction = 0.
|
| 32 |
plt.title('Image in the {} channel'.format(channel_name))
|
| 33 |
plt.show()
|
| 34 |
|
|
@@ -42,7 +42,7 @@ def individual_channel_image(img_arr, channel= 'r', ax=None):
|
|
| 42 |
# ax.imshow(cv2.cvtColor(img_arr,cv2.COLOR_RGB2BGR))
|
| 43 |
else:
|
| 44 |
plot = ax.imshow(plot_arr, cmap = cmap)
|
| 45 |
-
plt.colorbar(plot, orientation= 'vertical', ax = ax)
|
| 46 |
# plt.colorbar(orientiation= 'vertical', shrink = 0.7, pad = 0.1)
|
| 47 |
ax.set_title('Image in the {} channel'.format(channel_name))
|
| 48 |
|
|
|
|
| 28 |
plt.imshow(cv2.cvtColor(img_arr,cv2.COLOR_BGR2RGB))
|
| 29 |
else:
|
| 30 |
plt.imshow(plot_arr, cmap = cmap)
|
| 31 |
+
plt.colorbar(orientation= 'vertical', shrink = 0.7, pad = 0.01, fraction = 0.046,)
|
| 32 |
plt.title('Image in the {} channel'.format(channel_name))
|
| 33 |
plt.show()
|
| 34 |
|
|
|
|
| 42 |
# ax.imshow(cv2.cvtColor(img_arr,cv2.COLOR_RGB2BGR))
|
| 43 |
else:
|
| 44 |
plot = ax.imshow(plot_arr, cmap = cmap)
|
| 45 |
+
plt.colorbar(plot, orientation= 'vertical', ax = ax, fraction = 0.046,)
|
| 46 |
# plt.colorbar(orientiation= 'vertical', shrink = 0.7, pad = 0.1)
|
| 47 |
ax.set_title('Image in the {} channel'.format(channel_name))
|
| 48 |
|