ericmjl / nxviz

Visualization Package for NetworkX
https://ericmjl.github.io/nxviz
MIT License
452 stars 86 forks source link

Feature Request: Node label layout for circus plot #674

Closed AlirezaTheH closed 2 years ago

AlirezaTheH commented 2 years ago

Hi @ericmjl, in the old API there was a very cool feature for circus plot called node_label_layout. It had three options: numbers, rotation, standard. Do you have any plan to add that to the new API?

ericmjl commented 2 years ago

Yes! That sounds like a good feature to bring back. I'm wondering if there's a way to leverage the new code infra that we have to do node label layouts that are sane defaults for all types of plots?

This is also a good time to think carefully about where to place the function that would be akin to node_label_layout. Is this an annotation of some kind? I think it is, and would be best placed in annotate.py. What do you think?

AlirezaTheH commented 2 years ago

Yes, I also think annotate.py is best place to do this. There are already node labels functions there and I also think implementations will be something similar to group annotations. And defaults could be what we have now, labels in center of nodes.