Graphviz (DOT), different fontsizes in same label
Asked Answered
E

1

16

I wonder if it is possible to use different font sizes in the same label. If so, could any provide me with example?

Elusion answered 11/12, 2013 at 10:6 Comment(0)
T
32

Yes this is possible using HTML-Like labels.

Here's a simple example:

digraph g{
    a[label=<
        <FONT POINT-SIZE="20">Bigger</FONT>
         and 
        <FONT POINT-SIZE="10">Smaller</FONT>
    >];
}

Output:

graphviz label with different fontsizes

Taunt answered 11/12, 2013 at 21:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.