def set_data(self, data_np, metadata=None, astype=None):
        if astype:
            data = data_np.astype(astype)
        else:
            data = data_np
        self._data = data

        if metadata:
            self.update_metadata(metadata)

        self._set_minmax()

        self.make_callback('modified')
Use this method to SHARE (not copy) the incoming array.
dataset/ETHPy150Open ejeschke/ginga/ginga/BaseImage.py/BaseImage.set_data