Skip to content

Commit

Permalink
Use monospace font for code in figures.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eelis committed Nov 2, 2020
1 parent 1d7606c commit 8644529
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 34 deletions.
8 changes: 4 additions & 4 deletions source/figdag.dot
@@ -1,10 +1,10 @@
digraph dag {
graph [nodesep=1.5, rankdir=BT];

Base [shape=plaintext, height=.1, fontsize=24];
Derived1 [shape=plaintext, height=.1, fontsize=24];
Derived2 [shape=plaintext, height=.1, fontsize=24];
Base [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
Derived1 [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
Derived2 [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];

Derived2 -> Derived1;
Derived1 -> Base;
}
}
14 changes: 7 additions & 7 deletions source/figname.dot
@@ -1,17 +1,17 @@
digraph virt {
graph [nodesep=1.5, rankdir=BT];

W1 [label = "W", shape=plaintext, height=.1, fontsize=24];
V [shape=plaintext, height=.1, fontsize=24];
W2 [label = "W", shape=plaintext, height=.1, fontsize=24];
B [shape=plaintext, height=.1, fontsize=24];
C [shape=plaintext, height=.1, fontsize=24];
D [shape=plaintext, height=.1, fontsize=24];
W1 [label = "W", shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
V [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
W2 [label = "W", shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
B [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
C [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
D [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];

D -> B;
D -> C;
B -> V;
C -> V;
B -> W1;
C -> W2;
}
}
12 changes: 6 additions & 6 deletions source/fignonvirt.dot
@@ -1,14 +1,14 @@
digraph nonvirt {
graph [nodesep=1.5, rankdir=BT];

L1 [label = "L", shape=plaintext, height=.1, fontsize=24];
L2 [label = "L", shape=plaintext, height=.1, fontsize=24];
A [shape=plaintext, height=.1, fontsize=24];
B [shape=plaintext, height=.1, fontsize=24];
C [shape=plaintext, height=.1, fontsize=24];
L1 [label = "L", shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
L2 [label = "L", shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
A [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
B [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
C [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];

C -> B;
C -> A;
B -> L2;
A -> L1;
}
}
14 changes: 9 additions & 5 deletions source/figstreampos.dot
@@ -1,14 +1,18 @@
digraph figstreampos
{
traits_pos_type_char [label="char_traits<char>\n::pos_type"];
traits_pos_type_wchar_t [label="char_traits<wchar_t>\n::pos_type"];
streampos [fontname="Courier New"];
wstreampos [fontname="Courier New"];
streamoff [fontname="Courier New"];
streamsize [fontname="Courier New"];
traits_pos_type_char [label="char_traits<char>\n::pos_type",fontname="Courier New"];
traits_pos_type_wchar_t [label="char_traits<wchar_t>\n::pos_type",fontname="Courier New"];
traits_pos_type_char -> streampos [label=" iostreams.limits.pos"];
traits_pos_type_wchar_t -> wstreampos [label=" iostreams.limits.pos"];
streampos -> fpos [label=" iostream.forward"];
fpos [label="fpos<mbstate_t>"];
fpos [label="fpos<mbstate_t>",fontname="Courier New"];

traits_off_type_char [label="char_traits<char>\n::off_type"];
traits_off_type_wchar_t [label="char_traits<wchar_t>\n::off_type"];
traits_off_type_char [label="char_traits<char>\n::off_type",fontname="Courier New"];
traits_off_type_wchar_t [label="char_traits<wchar_t>\n::off_type",fontname="Courier New"];
traits_off_type_char -> streamoff [label=" iostreams.limits.pos"];
traits_off_type_wchar_t -> streamoff [label=" iostreams.limits.pos"];
wstreampos -> fpos [label=" iostream.forward"];
Expand Down
10 changes: 5 additions & 5 deletions source/figvirt.dot
@@ -1,13 +1,13 @@
digraph virt {
graph [nodesep=1.5, rankdir=BT];

V [shape=plaintext, height=.1, fontsize=24];
A [shape=plaintext, height=.1, fontsize=24];
B [shape=plaintext, height=.1, fontsize=24];
C [shape=plaintext, height=.1, fontsize=24];
V [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
A [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
B [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
C [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];

C -> B;
C -> A;
B -> V;
A -> V;
}
}
14 changes: 7 additions & 7 deletions source/figvirtnonvirt.dot
@@ -1,12 +1,12 @@
digraph virtnonvirt {
graph [nodesep=1.5, rankdir=BT];

B1 [label = "B", shape=plaintext, height=.1, fontsize=24];
B2 [label = "B", shape=plaintext, height=.1, fontsize=24];
AA [shape=plaintext, height=.1, fontsize=24];
X [shape=plaintext, height=.1, fontsize=24];
Y [shape=plaintext, height=.1, fontsize=24];
Z [shape=plaintext, height=.1, fontsize=24];
B1 [label = "B", shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
B2 [label = "B", shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
AA [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
X [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
Y [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];
Z [shape=plaintext, height=.1, fontsize=11, fontname="Courier New"];

subgraph {
AA -> X;
Expand All @@ -17,4 +17,4 @@ digraph virtnonvirt {

AA -> Z [weight=0];
Z -> B2;
}
}

0 comments on commit 8644529

Please sign in to comment.