summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2016-03-09 17:41:03 -0500
committerTom Rondeau <tom@trondeau.com>2016-03-09 17:41:03 -0500
commit521fbab35f2a9bfa406d1189345a581249871299 (patch)
tree5609094f1f0728909803764d92291fec6241bc0d /gnuradio-runtime/python
parent95c2afab85b75df1b07a66187d7cf0b81c7d8e18 (diff)
ctrlport: gr-perf-monitorx: add small offset to avoid log(0) calls.
Diffstat (limited to 'gnuradio-runtime/python')
-rw-r--r--gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx b/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
index d22e6e1ebc..cc9f76f864 100644
--- a/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
+++ b/gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx
@@ -860,7 +860,7 @@ class MForm(QtGui.QWidget):
nx.draw(self.G, self.pos,
edge_color=self.edge_weights,
node_color='#A0CBE2',
- width=map(lambda x: 3+math.log(x), self.edge_weights),
+ width=map(lambda x: 3+math.log(x+1e-20), self.edge_weights),
node_shape="s",
node_size=self.node_weights,
edge_cmap=plt.cm.Reds,
@@ -884,7 +884,7 @@ class MForm(QtGui.QWidget):
nx.draw_networkx_edges(self.G, self.pos,
edge_color=self.edge_weights,
- width=map(lambda x: 3+math.log(x), self.edge_weights),
+ width=map(lambda x: 3+math.log(x+1e-20), self.edge_weights),
edge_cmap=plt.cm.Reds,
ax=self.sp,
arrows=False)