diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-05-07 12:43:25 +0200 |
---|---|---|
committer | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-05-07 12:43:25 +0200 |
commit | 863391aaae8e7b08767ddd9abc7c7c69354ea14c (patch) | |
tree | f3af5bcfd85f4ffcacf8f0083a675eb8799db5f8 /controller/fw/tools/linkmem.py | |
parent | 5088ff3ae98f7d48743d59d1931f95fcbd0cf987 (diff) | |
download | master-thesis-863391aaae8e7b08767ddd9abc7c7c69354ea14c.tar.gz master-thesis-863391aaae8e7b08767ddd9abc7c7c69354ea14c.tar.bz2 master-thesis-863391aaae8e7b08767ddd9abc7c7c69354ea14c.zip |
fw: some plumbing
Diffstat (limited to 'controller/fw/tools/linkmem.py')
-rw-r--r-- | controller/fw/tools/linkmem.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/controller/fw/tools/linkmem.py b/controller/fw/tools/linkmem.py index fbd6dde..934a571 100644 --- a/controller/fw/tools/linkmem.py +++ b/controller/fw/tools/linkmem.py @@ -230,8 +230,13 @@ if __name__ == '__main__': return '#ddf7f4', None with wrap('digraph G', print) as lvl1print: + print('size="23.4,16.5!";') + print('graph [fontsize=40];') + print('node [fontsize=40];') + #print('ratio="fill";') + print('rankdir=LR;') - print('ranksep=1;') + print('ranksep=5;') print('nodesep=0.2;') print() @@ -242,7 +247,7 @@ if __name__ == '__main__': print(f'bgcolor = "{highlight_color}";') print('pencolor = none;') fc, cc = vhex(objs[obj]/max_osize) - highlight_subdir_part = f'<font face="carlito" color="{cc}" point-size="12">{highlight_head} / </font>' if highlight_head else '' + highlight_subdir_part = f'<font face="carlito" color="{cc}" point-size="40">{highlight_head} / </font>' if highlight_head else '' lvl2print(f'label = <<table border="0"><tr><td border="0" cellpadding="5" bgcolor="{fc}">' f'{highlight_subdir_part}' f'<font face="carlito" color="{cc}"><b>{path.basename(obj)} ({objs[obj]}B)</b></font>' |