r2 = SpanROI(0, 12)
// Test adding roi to plot
s.plot()
r2.add_widget(s)
np.testing.assert_equal(r2(s).data, s.data)
def test_span_spectrum_sig(self):
s = self.s_s
After Change
r2 = SpanROI(0, 12)
// Test adding roi to plot
s.plot()
w2 = r2.add_widget(s)
np.testing.assert_equal(r2(s).data, s.data)
w2.set_bounds(x=-10) // below min x
assert w2._pos[0] == 0