def __init__(self, *args, **kwargs):
    self._axes_aspect_ratio = None
    MatplotlibDataViewerState.x_axislabel_weight.set_choices(self, VALID_WEIGHTS)
    MatplotlibDataViewerState.y_axislabel_weight.set_choices(self, VALID_WEIGHTS)
    super(MatplotlibDataViewerState, self).__init__(*args, **kwargs)
    self.legend = MatplotlibLegendState(*args, **kwargs)
    self.add_callback('aspect', self._adjust_limits_aspect, priority=10000)
    self.add_callback('x_min', self._adjust_limits_aspect_x, priority=10000)
    self.add_callback('x_max', self._adjust_limits_aspect_x, priority=10000)
    self.add_callback('y_min', self._adjust_limits_aspect_y, priority=10000)
    self.add_callback('y_max', self._adjust_limits_aspect_y, priority=10000)
def __init__(self, *args, **kwargs):
    self._axes_aspect_ratio = None
    MatplotlibDataViewerState.x_axislabel_weight.set_choices(self, VALID_WEIGHTS)
    MatplotlibDataViewerState.y_axislabel_weight.set_choices(self, VALID_WEIGHTS)
    super(MatplotlibDataViewerState, self).__init__(*args, **kwargs)
    self.legend = MatplotlibLegendState(*args, **kwargs)
    self.add_callback('aspect', self._adjust_limits_aspect, priority=10000)
    self.add_callback('x_min', self._adjust_limits_aspect_x, priority=10000)
    self.add_callback('x_max', self._adjust_limits_aspect_x, priority=10000)
    self.add_callback('y_min', self._adjust_limits_aspect_y, priority=10000)
    self.add_callback('y_max', self._adjust_limits_aspect_y, priority=10000)