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

Nodes argument of draw_networkx_nodes not respected #22

Open
erlebach opened this issue May 12, 2021 · 0 comments
Open

Nodes argument of draw_networkx_nodes not respected #22

erlebach opened this issue May 12, 2021 · 0 comments

Comments

@erlebach
Copy link

HI,

The code below can be found in the method draw_networkx_nodes . I added a line that computes node_chart in the event a subset of nodes is specified via the nodelist argument. Without this line, the entire graph is drawn regardless of the nodelist argument.

   # ---------- Handle arguments ------------

    ###### node list argument
    if isinstance(nodelist, list):
        # Subset dataframe.
        df_nodes = df_nodes.loc[nodelist]
        # Build a chart (GE)  <<<<< ADDED THESE TWO LINES
        node_chart = alt.Chart(df_nodes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant