W3cubDocs

/Graphviz

distortion

Distortion factor for shape=polygon

type: double, default: 0.0, minimum: -100.0

Positive values cause top part to be larger than bottom; negative values do the opposite.

See also skew.

Example
graph {
  LargeBottom [shape=polygon sides=4 distortion=-.5]
  LargeTop    [shape=polygon sides=4 distortion=.5]
}
Valid on:
  • Nodes

© 2025 The Graphviz Authors
Licensed under the Eclipse Public License 1.0.
https://www.graphviz.org/docs/attrs/distortion/