I am trying to subplot two images myImage and reflectanceImage using matplotlib
and plt
, the problem is that the figure is displayed in the console not in a new window, I need to have the figure in a new seperate window in order to save it and use it outside the code.
I beleive the problem is actually concerned with the version i'm using of Linux (Ubuntu) ? Or am I missing some line of code ?
import matplotlib.pyplot as plt
import numpy as np
import cv2
img_directory = "/XXX/XXX/IMG_XXX.TIF"
myImage=cv2.imread(img_directory)
plt.figure()
plt.subplot(221), plt.imshow(myImage),plt.title('Original Image')
plt.subplot(222),
plt.imshow(np.array(reflectanceImage).reshape(1280,960).T),plt.title('Reflectance')p
Thank you for your help.