vc0
vc0

Reputation: 91

Graphviz PDF Output Size

I need to plot a diagram with graphviz including a lot of nodes which all have one connection to a main-node.

graphviz plot this as a diagram with a huge width.

Is there a possibility to set the size of pdf output witdh?

Upvotes: 1

Views: 1544

Answers (1)

Nirav Patel
Nirav Patel

Reputation: 1327

You can give height and width in your code

For Example

import graphviz as gv
g2 = gv.Digraph(format='pdf')
g2.attr(width="900pt", height="1800pt",fixedsize='true')

Upvotes: 2

Related Questions