llimllib / pymag-trees

Code from the article "Drawing Good-looking Trees" in Python Magazine
http://billmill.org/pymag-trees/
Do What The F*ck You Want To Public License
190 stars 33 forks source link

How to use function `gentree`? #6

Closed MrWater98 closed 3 years ago

MrWater98 commented 3 years ago

Thank you very much for this library. Now I would like to make it a API now, and it requires to generate a Tree object by passing parameters. I noticed that you offer a gentree function in 33 line of gen.py, how should I use this function correctly?

llimllib commented 3 years ago

Hi @MrWater98 , I don't know! This is just the code I used to make the demos in an article I wrote a decade ago so I'm not sure, to be honest

MrWater98 commented 3 years ago

Well, I solved it by walking through the algorithm. Really appreciate to your great job~

llimllib commented 3 years ago

great! glad it was useful