Hi, just discovered this tool via AI, am still reading docs. It’s probably a bit early to ask this but I didn’t see it documented how to force a graph to fit onto one sheet of paper? And AI has not been very helpful, as it still isn’t the best at reading docs.
Looking at this stackoverflow post, although it refers to bitmap and thus not SVG, would this be the current, correct approach to use in the PNG case? It looks tedious to assign it to each node individually, and such an approach may easily break so I want to assume there’s a better way.. well, if we know that some X width and Y height represent the bounds of a letter sized paper, and we can do basic math to count the nodes/edges (N) on one side of the graph tree, we can define the max-height of a node or edge allowed as Y/N. In general I don’t want to hardcode this unless I know the engine won’t handle it.
I know I need to do more research, it’s only been a couple hours of reading docs and online playgrounds. Asking questions early might prevent me from getting lost on a tangent and wasting hours of work though
Essentially, this question boils down to:
- Is there a built-in way from graphviz to tell an engine i.e. dot, hey, render a vertical Top Bottom graph with 11 nodes, 10 edges between nodes, make it fit on a single sheet of letter sized (or whatever) paper?
- Do tools or ecosystem built around the graphviz tool already include this functionality? if so, which ones?
- If neither are available, what do you do to accomplish this? (especially if its trivial)
- Was the stackoverflow post correct? graphviz - Controlling bitmap rendering - Stack Overflow