def update_axes_settings_from(self, state):
    self.x_axislabel_size = state.x_axislabel_size
    self.y_axislabel_size = state.y_axislabel_size
    self.x_axislabel_weight = state.x_axislabel_weight
    self.y_axislabel_weight = state.y_axislabel_weight
    self.x_ticklabel_size = state.x_ticklabel_size
    self.y_ticklabel_size = state.y_ticklabel_size
    self.legend.update_axes_settings_from(state.legend)
def update_axes_settings_from(self, state):
    self.x_axislabel_size = state.x_axislabel_size
    self.y_axislabel_size = state.y_axislabel_size
    self.x_axislabel_weight = state.x_axislabel_weight
    self.y_axislabel_weight = state.y_axislabel_weight
    self.x_ticklabel_size = state.x_ticklabel_size
    self.y_ticklabel_size = state.y_ticklabel_size
    self.legend.update_axes_settings_from(state.legend)