type: double, default: 0.5, minimum: 0.02
This is taken as the initial, minimum height of the node. If fixedsize is true, this will be the final height of the node. Otherwise, if the node label requires more height to fit, the node's height will be increased to contain the label.
If the output format is dot, the value given to height will be the final value.
If the node shape is regular, the width and height are made identical:
width and the height are set explicitly, the maximum of the two values is used.width or height is set explicitly, that value is used for both width and height.If a value below the minimum value (0.02) is set, it will be rounded up to this minimum.
digraph G {
"default"
"1in" [height=1]
"2in" [height=2]
}
See also:
Valid on:
© 2025 The Graphviz Authors
Licensed under the Eclipse Public License 1.0.
https://www.graphviz.org/docs/attrs/height/