controls/DebugVariablePanel/DebugVariableGraphicViewer.py
changeset 1744 69dfdb26f600
parent 1741 dd94b9a68c61
child 1745 f9d32913bad4
equal deleted inserted replaced
1743:c3c3d1318130 1744:69dfdb26f600
  1090              * height)             # Divide by figure height in pixel
  1090              * height)             # Divide by figure height in pixel
  1091 
  1091 
  1092         # Update position of figure (keeping up and bottom border the same
  1092         # Update position of figure (keeping up and bottom border the same
  1093         # size)
  1093         # size)
  1094         self.Figure.subplotpars.update(
  1094         self.Figure.subplotpars.update(
  1095             top= 1.0 - CANVAS_BORDER[1] * canvas_ratio,
  1095             top=1.0 - CANVAS_BORDER[1] * canvas_ratio,
  1096             bottom= CANVAS_BORDER[0] * canvas_ratio)
  1096             bottom=CANVAS_BORDER[0] * canvas_ratio)
  1097 
  1097 
  1098         # Update position of items labels
  1098         # Update position of items labels
  1099         if self.GraphType == GRAPH_PARALLEL or self.Is3DCanvas():
  1099         if self.GraphType == GRAPH_PARALLEL or self.Is3DCanvas():
  1100             num_item = len(self.Items)
  1100             num_item = len(self.Items)
  1101             for idx in xrange(num_item):
  1101             for idx in xrange(num_item):
  1294                         length = min(length, len(z_data))
  1294                         length = min(length, len(z_data))
  1295 
  1295 
  1296                         # Add plot to canvas
  1296                         # Add plot to canvas
  1297                         self.Axes.plot(x_data[:, 1][:length],
  1297                         self.Axes.plot(x_data[:, 1][:length],
  1298                                        y_data[:, 1][:length],
  1298                                        y_data[:, 1][:length],
  1299                                        zs = z_data[:, 1][:length])
  1299                                        zs=z_data[:, 1][:length])
  1300 
  1300 
  1301                     # Display cursor in canvas if a cursor tick is defined and
  1301                     # Display cursor in canvas if a cursor tick is defined and
  1302                     # it is include in values tick range
  1302                     # it is include in values tick range
  1303                     if (self.CursorTick is not None and
  1303                     if (self.CursorTick is not None and
  1304                         start_tick <= self.CursorTick <= end_tick):
  1304                         start_tick <= self.CursorTick <= end_tick):