

def test_apply_roi_xlog(self):
    self.client.add_layer(self.data)
    self.client.set_component(self.data.id['x'])
    self.data.edit_subset = [self.data.subsets[0]]
    self.client.xlog = True
    roi = PolygonalROI(vx=[1, 2, 3], vy=[2, 3, 4])
    self.client.apply_roi(roi)
    state = self.data.subsets[0].subset_state
    assert isinstance(state, RangeSubsetState)
    np.testing.assert_allclose(state.lo, 7.368062997280774)
    np.testing.assert_allclose(state.hi, 1000)

dataset/ETHPy150Open glue-viz/glue/glue/viewers/histogram/tests/test_client.py TestHistogramClient.test_apply_roi_xlog/original