diff options
author | Miklos Maroti <mmaroti@gmail.com> | 2013-07-20 10:43:38 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-07-20 10:45:53 -0700 |
commit | bc14dc822294eb9d562174eed2db888d88f6314d (patch) | |
tree | a64124599d75314c29d75e4b6829f8b6721da88e /gr-wxgui/python | |
parent | f2a179eade333826981e831874810feb0d917521 (diff) |
wxgui: Prevent a crash at displaying the tooltip when the graph is not yet populated
Diffstat (limited to 'gr-wxgui/python')
-rw-r--r-- | gr-wxgui/python/wxgui/plotter/channel_plotter.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gr-wxgui/python/wxgui/plotter/channel_plotter.py b/gr-wxgui/python/wxgui/plotter/channel_plotter.py index 1eac9f5f3a..db174c7b28 100644 --- a/gr-wxgui/python/wxgui/plotter/channel_plotter.py +++ b/gr-wxgui/python/wxgui/plotter/channel_plotter.py @@ -156,6 +156,7 @@ class channel_plotter(grid_plotter_base): x_index_high = int(math.ceil(x_index)) scale = x_index - x_index_low + self._channels[channel][TRIG_OFF_KEY] y_value = (samples[x_index_high] - samples[x_index_low])*scale + samples[x_index_low] + if math.isnan(y_value): continue label_str += '\n%s: %s'%(channel, common.eng_format(y_value, self.y_units)) return label_str |