Adjust width of the edges in decision tree

20 views
Skip to first unread message

gabr...@jukedeck.com

unread,
Aug 12, 2016, 8:37:52 AM8/12/16
to pygraphviz-discuss

Hey everyone!
I need to create a probabilistic decision tree like the one above, is there any chance I can adjust the with of the connection in the tree
I tried with self.Tree.add_edge(A, B, width= 0.5) but it doesn't seem to be working

Thanks so much in advance!

Gabriele


Casey Deccio

unread,
Aug 12, 2016, 9:48:05 AM8/12/16
to pygraphvi...@googlegroups.com
On Fri, Aug 12, 2016 at 5:52 AM, <gabr...@jukedeck.com> wrote:
I need to create a probabilistic decision tree like the one above, is there any chance I can adjust the with of the connection in the tree
I tried with self.Tree.add_edge(A, B, width= 0.5) but it doesn't seem to be working


Try:

self.Tree.add_edge(A, B, penwidth=0.5)

Casey
Reply all
Reply to author
Forward
0 new messages