W3cubDocs

/Graphviz

viewport

Clipping window on final drawing

type: viewPort, default: ""

viewport supersedes any size attribute. The width and height of the viewport specify precisely the final size of the output.

Valid on:
  • Graphs

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