Could it be that you are using two different versions of
Graphviz? (One with pygraphviz and one with pixelglow).
Or maybe pixelglow sets some different defaults from the
basic graphviz defaults?
You can set all of the Graphviz options with pygraphviz.
See
https://networkx.lanl.gov/browser/pygraphviz/trunk/doc/examples/attributes.py
for some examples.
Aric
The draw() method doesn't change any of the default layout options.
Can you try this code and see what you get?
from pygraphviz import *
A=AGraph()
# A.node_attr['fixedsize']='true'
A.add_edge(4,"very long node name")
print A.string() # print dot file to standard output
A.write('test.dot')
# draw below should be the same as same as "dot -Tsvg test.dot >test.svg"
A.draw('test.svg',prog='dot')
FYI: setting fixedsize=true produces an error on my machine
of "size to small for label".
I'm using
dot - Graphviz version 2.16 (Fri Feb 8 12:52:03 UTC 2008)
Aric
The draw() method doesn't change any of the default layout options.
Can you try this code and see what you get?
from pygraphviz import *
A=AGraph()
# A.node_attr['fixedsize']='true'
A.add_edge(4,"very long node name")
print A.string() # print dot file to standard output
A.write('test.dot')
FYI: setting fixedsize=true produces an error on my machine
of "size to small for label".
My output looks correct. The node oval entirely encloses the label.
> So, ultimately, something is wrong with my version of dot, I seems to me.
> Does yours do the same thing?
Mine works fine. So maybe you need an updated version of graphviz?
Aric
Mine works fine. So maybe you need an updated version of graphviz?