Skip to content

Commit 15a3474

Browse files
committed
Annotate output graph with a parallelogram node with the model name.
- Legacy-Id: 183
1 parent 1c9bf9b commit 15a3474

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

ietf/bin/graphall

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,15 @@ do
1313
then
1414
python modelviz.py $d
1515
fi
16-
done > models.dot
17-
unflatten -f -l 10 models.dot | dot -Tps -Gsize=10.5,8.0 -Gmargin=0.25 -Gratio=auto -Grotate=90 | sed -e 's/ Bold/-Bold/' > models.ps
16+
done | unflatten -f -l 10 | gvpr -c '
17+
BEG_G {
18+
node_t title = node($G, "title");
19+
title.shape="parallelogram";
20+
string model = $G.name;
21+
model = sub(model, "^ietf.");
22+
model = sub(model, ".models$");
23+
title.label = model;
24+
title.fontsize = 24;
25+
}
26+
' > models.dot
27+
dot -Tps -Gsize=10.5,8.0 -Gmargin=0.25 -Gratio=auto -Grotate=90 models.dot | sed -e 's/ Bold/-Bold/' > models.ps

0 commit comments

Comments
 (0)