Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permanent labels on Networkx graph #8289

Closed
codercahol opened this issue Oct 1, 2018 · 3 comments · Fixed by #13620
Closed

Permanent labels on Networkx graph #8289

codercahol opened this issue Oct 1, 2018 · 3 comments · Fixed by #13620
Labels
Milestone

Comments

@codercahol
Copy link

Following up on https://stackoverflow.com/questions/49848966/how-to-add-permanent-name-labels-not-interactive-ones-on-nodes-for-a-networkx since the problem hasn't been addressed yet and I couldn't find an existing issue that covered it.

It is really painful to add labels to networkx graphs currently, would be awesome if this could be improved.

@bryevdv
Copy link
Member

bryevdv commented Oct 1, 2018

@canavandl do you have any thoughts about this? I can imagine a few possible avenues for both syntax and implementation but I'd appreciate your thoughts.

@gmlevin
Copy link

gmlevin commented Jan 2, 2019

One option would be to include the label as part of the glyph. Have a standard attribute that would label the node, or have a parameter to glyph that says where to pull the label text from (@label to pull the text from node['label']).

The association could then be used to define the label and the hover text (label="@label", hover="@hover")

@bryevdv bryevdv modified the milestones: short-term, 1.1.1 Mar 8, 2019
@mattpap mattpap modified the milestones: 1.1.1, short-term Apr 29, 2019
@fbidu
Copy link

fbidu commented Apr 12, 2020

Hello, did we have any updates on this? I just stumble into this while trying to accomplish the same task

@mattpap mattpap modified the milestones: short-term, 3.4 Oct 29, 2023
@mattpap mattpap added the grant: SDG 2023 Funded from NumFOCUS Small Development Grant 2023 label Oct 29, 2023
@mattpap mattpap modified the milestones: 3.4, 3.5 Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants