From 770f0b92bf12cd2f506694b0ee36564df0199f47 Mon Sep 17 00:00:00 2001 From: ElephantHunters <0145naveenmanwani17@gmail.com> Date: Sat, 13 Jan 2018 11:12:25 +0530 Subject: [PATCH] Updateprog15.py just added subplot before both of the imshow ,so that both the image can be plotted together in one window. --- 01# Basics/prog15.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/01# Basics/prog15.py b/01# Basics/prog15.py index 2034773..a6622b3 100644 --- a/01# Basics/prog15.py +++ b/01# Basics/prog15.py @@ -8,6 +8,7 @@ def main(): img1 = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) + plt.subplot(121) plt.imshow(img) plt.title('Color Image BGR') plt.xticks([]) @@ -15,6 +16,7 @@ def main(): plt.show() + plt.subplot(122) plt.imshow(img1) plt.title('Color Image RGB') plt.xticks([]) @@ -22,4 +24,4 @@ def main(): plt.show() if __name__ == "__main__": - main() \ No newline at end of file + main()