equal
deleted
inserted
replaced
61 # Colors used cyclically for graph curves |
61 # Colors used cyclically for graph curves |
62 COLOR_CYCLE = ['r', 'b', 'g', 'm', 'y', 'k'] |
62 COLOR_CYCLE = ['r', 'b', 'g', 'm', 'y', 'k'] |
63 # Color for graph cursor |
63 # Color for graph cursor |
64 CURSOR_COLOR = '#800080' |
64 CURSOR_COLOR = '#800080' |
65 |
65 |
66 #------------------------------------------------------------------------------- |
66 # ------------------------------------------------------------------------------- |
67 # Debug Variable Graphic Viewer Helpers |
67 # Debug Variable Graphic Viewer Helpers |
68 #------------------------------------------------------------------------------- |
68 # ------------------------------------------------------------------------------- |
69 |
69 |
70 |
70 |
71 def merge_ranges(ranges): |
71 def merge_ranges(ranges): |
72 """ |
72 """ |
73 Merge variables data range in a list to return a range of minimal min range |
73 Merge variables data range in a list to return a range of minimal min range |
102 range_size = 1.0 |
102 range_size = 1.0 |
103 |
103 |
104 # Return range expended from 10 % |
104 # Return range expended from 10 % |
105 return center - range_size * 0.55, center + range_size * 0.55 |
105 return center - range_size * 0.55, center + range_size * 0.55 |
106 |
106 |
107 #------------------------------------------------------------------------------- |
107 # ------------------------------------------------------------------------------- |
108 # Debug Variable Graphic Viewer Drop Target |
108 # Debug Variable Graphic Viewer Drop Target |
109 #------------------------------------------------------------------------------- |
109 # ------------------------------------------------------------------------------- |
110 |
110 |
111 |
111 |
112 class DebugVariableGraphicDropTarget(wx.TextDropTarget): |
112 class DebugVariableGraphicDropTarget(wx.TextDropTarget): |
113 """ |
113 """ |
114 Class that implements a custom drop target class for Debug Variable Graphic |
114 Class that implements a custom drop target class for Debug Variable Graphic |
233 wx.OK | wx.ICON_ERROR) |
233 wx.OK | wx.ICON_ERROR) |
234 dialog.ShowModal() |
234 dialog.ShowModal() |
235 dialog.Destroy() |
235 dialog.Destroy() |
236 |
236 |
237 |
237 |
238 #------------------------------------------------------------------------------- |
238 # ------------------------------------------------------------------------------- |
239 # Debug Variable Graphic Viewer Class |
239 # Debug Variable Graphic Viewer Class |
240 #------------------------------------------------------------------------------- |
240 # ------------------------------------------------------------------------------- |
241 |
241 |
242 |
242 |
243 class DebugVariableGraphicViewer(DebugVariableViewer, FigureCanvas): |
243 class DebugVariableGraphicViewer(DebugVariableViewer, FigureCanvas): |
244 """ |
244 """ |
245 Class that implements a Viewer that display variable values as a graphs |
245 Class that implements a Viewer that display variable values as a graphs |