c0fec0de / anytree

Python tree data library
Apache License 2.0
947 stars 133 forks source link

How may I change tree orientation in DOT export #128

Closed datascientistlin closed 4 years ago

datascientistlin commented 4 years ago

Hi,

I have been using anytree often. It is a wonderful tool for visualizing hierarchical data.

I noticed the tree generated is from top to bottom by default. Is there any way I can generate a tree from left to right in DotExporter?

Thank you.

datascientistlin commented 4 years ago

found it. I can set it in the options as DotExporter(node, options=["rankdir=LR;"]