def __init__(self, viewer_state=None, **kwargs):
    super(MatplotlibLayerState, self).__init__(viewer_state=viewer_state, **kwargs)
    self.color = self.layer.style.color
    self.alpha = self.layer.style.alpha
    self._sync_color = keep_in_sync(self, 'color', self.layer.style, 'color')
    self._sync_alpha = keep_in_sync(self, 'alpha', self.layer.style, 'alpha')
    self.add_global_callback(self._notify_layer_update)
def __init__(self, viewer_state=None, **kwargs):
    super(MatplotlibLayerState, self).__init__(viewer_state=viewer_state, **kwargs)
    self.color = self.layer.style.color
    self.alpha = self.layer.style.alpha
    self._sync_color = keep_in_sync(self, 'color', self.layer.style, 'color')
    self._sync_alpha = keep_in_sync(self, 'alpha', self.layer.style, 'alpha')
    self.add_global_callback(self._notify_layer_update)