Similar to this chap's post, I'm seeing Sphinx generate unreadable graphviz output:
How can I generate readable output?
-Gfontsize=140
neato
instead of dot
it produces readable output, but the graphs aren't tree-like.I figured out the answer from this thread. In the graphviz.py
code, they have a default value for the size of the graph at 8.0x12.0. If you want to allow Graphviz to determine the size you need to put this in conf.py
so the Sphinx graphviz extension uses your empty string instead of its default:
inheritance_graph_attrs = dict(size='""')
Also, if you're hitting this issue then the graph may be too wide once you allow the size to be determined by Graphviz. You'll additionally want attribute rankdir="TB"
so the tree goes from top to bottom instead of left to right:
inheritance_graph_attrs = dict(rankdir="TB", size='""')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With