W3cubDocs

/Graphviz

dpi

Specifies the expected number of pixels per inch on a display device

type: double, default: 96.0, minimum: 0.0

For bitmap output, dpi guarantees that text rendering will be done more accurately, both in size and in placement.

For SVG output, dpi guarantees the dimensions in the output correspond to the correct number of points or inches.

Valid on:
  • Graphs

Note: bitmap output, svg only.

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