summaryrefslogtreecommitdiff
path: root/gr-wxgui/python
diff options
context:
space:
mode:
authorMiklos Maroti <mmaroti@gmail.com>2013-07-20 10:43:38 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2013-07-20 10:45:53 -0700
commitbc14dc822294eb9d562174eed2db888d88f6314d (patch)
treea64124599d75314c29d75e4b6829f8b6721da88e /gr-wxgui/python
parentf2a179eade333826981e831874810feb0d917521 (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.py1
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