Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to eliminate truncated graph arrowheads?

The following simple directed graph has truncated arrowheads:

vpos = {'W':(-0.5,0.5),'E':(0.5,0.5),'mW':(-0.5,0),'mE':(0.5,0)}
D1 = DiGraph()
D1.add_edge(('mW','mE','mE-mW'))
D1.add_edge(('W','E','W-E'))
D1.add_edge(('mW','W'))
D1.show(pos=vpos,vertex_size=500,figsize=(2,2))

image description

If I change the last statement to:

D1.show(pos=vpos)

I still get truncated horizontal arrows, but less on the vertical. image description

Any suggestions for preserving full arrowheads? It looks like the clip limits for arrows are different than those for vertices. Setting fig_tight=False has no effect.