From 3443a99f000f32275a078714ace95637967408ae Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Wed, 6 Nov 2019 11:17:46 +0200 Subject: [PATCH] *fontsize --- srcxray.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srcxray.py b/srcxray.py index a2a32d2..7bfe3d2 100755 --- a/srcxray.py +++ b/srcxray.py @@ -702,9 +702,11 @@ def write_dot(g, dot): dot.write("{ rank=same %s }\n" % (' '.join(['"%s"' % (str(a)) for a in ranks[r]]))) for n in g.nodes(): - prop = Munch() + prop = Munch(g.node[n]) if scaled and len(ranks): prop.fontsize = 500 + 10000 / (len(ranks[rank(g, n)]) + 1) + prop.fontsize = 30 + min(5 * len(g.edges(n)), 50) + # prop.label = n + ' ' + str(rank(g,n)) if prop: dot.write('"%s" [%s]\n' % (re.escape(n), ','.join(