question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add example of updating Graph node colors

See original GitHub issue

Would it be possible to update the node colors on Graph?

I’m thinking of making a streamz extension which plots the execution graph and then colors the nodes by if that node is processing data, done processing data, or failed to process the data.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Jun 14, 2018

Repurposed this issue to add an example demonstrating this in the docs.

1reaction
philippjfrcommented, Jun 12, 2018

Is that currently feasible, or does it depend on e.g. #768 ?

That could probably be made to work but note that #768 has very little to do with it. #768 will add the ability to map column values to arbitrary properties on the glyph, but it will not let you switch between glyphs. Since the unicode example uses a completely different glyph (the text glyph) that is not simply some variation on the marker property that PR will not allow you to switch between them arbitrarily without a lot of special handling. Edit: I suppose #768 is general and does cover that, it’s just that the current PR won’t handle that and if we want that behavior it will need special handling.

Ah, so there isn’t a way to say “change the color of that node only” I need to pass in the full node-color mapping every time?

That is correct, DynamicMap callbacks return the whole element each time which will then be translated into an update in the plot. You can of course store the data in one data structure which you keep updating as long as you wrap it in a new Graph.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set colors for nodes in NetworkX? - Stack Overflow
My goal is to visualize DFS, I will first show the initial graph and then color nodes step by step as DFS solves...
Read more >
Node Coloring and Updating Graph Plot - Google Groups
Hi, I am trying to do this in a large graph --- 1. Initially, all nodes in the graph have white color and...
Read more >
How to Change Node Color in PyVis (PyVis and ... - YouTube
In this video, we learn how to change node color in PyVis.Hex Codes:ep_color="#03DAC6", ms_color="#da03b3", edge_color="#018786"For the json ...
Read more >
Graph.update — NetworkX 2.8.8 documentation
If it has attributes nodes and edges , then it is taken to be a Graph-like object and those attributes are used as...
Read more >
Highlight nodes and edges in plotted graph - MATLAB highlight
NodeLabelColor — Color of node labels [0 0 0] (default) | RGB triplet | hexadecimal color code | color name ; [0.3010 0.7450...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found