I need my image to be interactive

35 views
Skip to first unread message

Alexandra Gkoutzidou

unread,
Oct 24, 2018, 11:36:41 AM10/24/18
to hyperspy-users
Hello, I ve written the following code but i need the ROI profile line to be interactive so I can move it around and take intensity measurements from different regions. I am opening the file with spider, anaconda. The image opens within the console and it is not interactive. what am I doing wrong?

import hyperspy.api as hs
import numpy as np
import matplotlib.pyplot as plt
#from scipy.fftpack import fft2, fftshift
import scipy

holo0 = hs.load('Ceta.tif')
hs.plot.plot_images([holo0, holo0.isig[150:250, 200:300]], tight_layout=False)
holo0.plot(saturated_pixels=0.1)

holo0.plot()

lin = hs.roi.Line2DROI(x1=7, y1=15, x2=17, y2=5)
Roi2D = lin.interactive(color='red', signal=holo0)
lin.plot()


gtdndoulevei.py
Reply all
Reply to author
Forward
0 new messages