commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 03/10: ctrlport: gr-perf-monitorx: add smal


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/10: ctrlport: gr-perf-monitorx: add small offset to avoid log(0) calls.
Date: Sun, 27 Mar 2016 13:57:56 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 521fbab35f2a9bfa406d1189345a581249871299
Author: Tom Rondeau <address@hidden>
Date:   Wed Mar 9 17:41:03 2016 -0500

    ctrlport: gr-perf-monitorx: add small offset to avoid log(0) calls.
---
 gnuradio-runtime/python/gnuradio/ctrlport/gr-perf-monitorx | 4 ++--
 1 file 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 d22e6e1..cc9f76f 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]