示例#1
0
 def edit_axis_parameters(self, axis_id):
     """Edit axis parameters"""
     if axis_id in (self.Y_LEFT, self.Y_RIGHT):
         title = _("Y Axis")
     else:
         title = _("X Axis")
     param = AxisParam(title=title)
     param.update_param(self, axis_id)
     if param.edit(parent=self):
         param.update_axis(self, axis_id)
         self.replot()
示例#2
0
 def edit_axis_parameters(self, axis_id):
     """Edit axis parameters"""
     if axis_id in (self.Y_LEFT, self.Y_RIGHT):
         title = _("Y Axis")
     else:
         title = _("X Axis")
     param = AxisParam(title=title)
     param.update_param(self, axis_id)
     if param.edit(parent=self):
         param.update_axis(self, axis_id)
         self.replot()