Hello, thank you for the help! Yes imshow() work when running in Python(), I actually need the imshow() provided in the spectral library, the usage is from spectral import * view = imshow(hsi_image, bands=(58, 38, 18)) I did run the provided example from both the command line and within idlde. I could not run the line with the imshow line with the web output, there is an error, but I was able to run this code IDL> plt = Python.Import('matplotlib.pyplot') % Loaded DLM: PYTHON37. IDL> Python.plt = plt IDL> p = plot(/test) % Loaded DLM: PNG. Warning: Cannot convert string "-adobe-helvetica-medium-r-normal-*-*-120-75-75-p-*-iso8859-1" to type FontStruct % Loaded DLM: LAPACK. IDL> image = reverse(p.copywindow(),3) IDL> !null = plt.title('IDL Graphic Embedded in Python') IDL> !null = plt.axis('off') IDL> !null = plt.imshow(image) IDL> !null = plt.show() This seems to work but is a little buggy in that if I do not immediately follow !null = plt.imshow(image) with !null = plt.show() idl Segmentation faults or if I close the window launched with p = plot(/test) idl Segmentation faults. IDL> Segmentation fault (core dumped) With the p = plot(/test) window open, I was able to display an RGB with, IDL> !null = plt.imshow(RGB) IDL> !null = plt.show() Same behavior in from the command line and withing the idle. Thanks again, Judy
|