Closed elenacristinarg closed 6 years ago
I'm not sure if that's a spectral
issue or a matplotlib
issue. spectral.imshow
explicitly turns on interactivity in matplotlib
. If you want to avoid that, you could try using matplotlib
's imshow
instead. To do that, use the spectral.get_rgb
function to get the image display data (which shouldn't turn on interactivity), then matplotlib.imshow
to display it:
import matplotlib.pyplot as plt
rgb = spy.get_rgb(img, (30, 20, 10), classes=gt)
plt.imshow(rgb)
Hi!
Firstly, thanks for your work with this library.
I`m trying to use imshow inside a script and I always get an error (using python or ipython interpreter):
Is there a way to use any of these displaying functions in a non-interactive way? For instance, to show an image at the end of a script
Thanks, in advance.
Best regards.