

def test_artist_clear_resets_arrays(self):
    self.client.add_layer(self.data)
    self.client.set_component(self.data.components[0])
    for a in self.client._artists[self.data]:
        assert (a.get_data()[0].size > 0)
        a.clear()
        assert (a.get_data()[0].size == 0)

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