Hi
I have multiple images to to view and would like to display them with matplotlib (it’s what I have available), but view each within a separate figure, not subplots. This way I can work with one without affecting others.
Thanks…
Hi
I have multiple images to to view and would like to display them with matplotlib (it’s what I have available), but view each within a separate figure, not subplots. This way I can work with one without affecting others.
Thanks…
An example of what I’ve attempted, which only shows the first image. The program closes when I close that image instead of showing the second image.
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
big = mpimg.imread("waterfall_big.jpg")
ds = mpimg.imread("waterfall_downsampled.jpg")
p1=plt.figure(1)
p1.imshow(ds)
p2=plt.figure(2)
p2.imshow(big)
plt.show()
I’ve got it to work. It was pretty simple once that happened
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
ds = mpimg.imread("waterfall_downsampled.jpg")
plt.figure()
plt.imshow(ds)
big = mpimg.imread("waterfall_big.jpg")
plt.figure()
plt.imshow(big)
plt.show()
I’ll mark this as closed.