Closed galenseilis closed 1 year ago
Example: https://github.com/xflr6/graphviz/blob/master/examples/btree.py
Is it possible to specify different colours for the
<f0>
,<f1>
and<f2>
boxes within the node?
From https://graphviz.org/doc/info/shapes.html#record, I understand there is no way to assign style to fields in record-based shapes (as used in the example).
For coloring, you probably need to re-create the example using HTML-Like Labels (see https://graphviz.org/doc/info/shapes.html#html, color
attribute), see also https://graphviz.org/doc/info/shapes.html#html-like-label-examples.
This btree example is close to something I want:
Naturally this example doesn't have colour. I see I can colour a single node like this:
Is it possible to specify different colours for the
<f0>
,<f1>
and<f2>
boxes within the node?