controls/DebugVariablePanel/DebugVariableGraphicViewer.py
changeset 2440 45b43f275ca1
parent 2437 105c20fdeb19
child 2450 5024c19ca8f0
equal deleted inserted replaced
2439:f0a040f1de1b 2440:45b43f275ca1
  1324             self.Axes.set_ylim(y_min, y_max)
  1324             self.Axes.set_ylim(y_min, y_max)
  1325 
  1325 
  1326         # Get value and forced flag for each variable displayed in graph
  1326         # Get value and forced flag for each variable displayed in graph
  1327         # If cursor tick is not defined get value and flag of last received
  1327         # If cursor tick is not defined get value and flag of last received
  1328         # or get value and flag of variable at cursor tick
  1328         # or get value and flag of variable at cursor tick
  1329         values, forced = apply(zip, [(
  1329         args = [(
  1330             item.GetValue(self.CursorTick)
  1330             item.GetValue(self.CursorTick)
  1331             if self.CursorTick is not None
  1331             if self.CursorTick is not None
  1332             else (item.GetValue(), item.IsForced())
  1332             else (item.GetValue(), item.IsForced())) for item in self.Items]
  1333         ) for item in self.Items])
  1333         values, forced = zip(*args)
  1334 
  1334 
  1335         # Get path of each variable displayed simplified using panel variable
  1335         # Get path of each variable displayed simplified using panel variable
  1336         # name mask
  1336         # name mask
  1337         labels = [item.GetVariable(self.ParentWindow.GetVariableNameMask())
  1337         labels = [item.GetVariable(self.ParentWindow.GetVariableNameMask())
  1338                   for item in self.Items]
  1338                   for item in self.Items]