Open rocky opened 3 years ago
Interesting to see where this is being used.
The layout I've created provides node positions for networkx's drawing methods. So all this method produces is the coordinates of the nodes - it doesn't do the work to draw them. The methods from networkx allow you to specify the node sizes, so check in the methods you're using to see where the drawing actually happens. There's probably a way to set up the node size there.
Ok. Thanks for the information.
If there is a simple way to list positions of a node a given level c it is probably a simple matter to compute the maximum diameter/width of a node as a percentage of the space between nodes.
After understanding a little more context about what's up, it was pretty simple to adjust the code to compute the min separation between nodes at a level in this function so that information can be used to adjust matplotlib's markersize
Hi - I am using the tree layout portion in an open-source version of the Wolfram Language called Mathics.
Specifically, the use is here so if I have missed something in citation let me know so I can fix.
A problem I noticed is that the nodes meld into one another when the tree is large. Probably it would be good to reduce their size just as is done with line widths.
Here is an example.
When I run:
I get: