Open MikeB2019x opened 1 year ago
The situation has deteriorated further? Running the same code as my preceding post:
holoviews: 1.16.0
bokeh: 2.4.3
This is a bug in Bokeh with WebGL and should be fixed in the next release. Until then, you can get the desired behavior with hv.renderer("bokeh").webgl = False
.
I just have to say, when the graph/network rendering works in holoviews/bokeh it is awesome. Like this (I'm not showing the hovering)
It would be really perfect if the holoviews
team and the networkx
team could maybe collaborate/advise on bringing awesome graphics to the networkx
package. The latter is a great package but if the visualization (see below) was as good as holoviews/bokeh it would be magnificent.
yeah, I'm a big fan of both these products and not a member of either team :-D
This is a bug in Bokeh with WebGL and should be fixed in the next release. Until then, you can get the desired behavior with
hv.renderer("bokeh").webgl = False
.
While this allows rendering the node markers, this doesn't change that the colouring of the nodes doesn't happen unless the edge attributes are cleared.
macOS: 13.3.1 (22E261) python: 3.10.10 Jupyter: 6.5.4 (server) holoviews: 1.15.4
The method should take in a graph and give a visualization. The nodes in the visualization can be color-coded according to any of the node attributes. Note the documentation indicates that "...By default it will extract all node and edge attributes ..."
If as in the example below, a graph is constructed and both the nodes and edges have attributes. The result is a graph visualization where the nodes have no color if a color is linked to a node attribute.
If the same graph is constructed but without any edge attributes, the nodes are colored as expected.
There is no error thrown.
For those wondering: same behaviour if nodes/edges are entered in key word fashion e.g.
g.add_edge('n325', 'n10747', label='HAS', TYPE='HAS', id='e74229')