You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm new to holoviews, but I've found a way to plot the graph I need from an edge list with weights and all, just like I need it. Now I'm trying to find a way to change the color or shape of the source nodes. But I'm unable to do so because I get a weird error:
Traceback (most recent call last): File "testDatashaderHoloviews.py", line 154, in <module> myGraphTestSpringLayout() File "testDatashaderHoloviews.py", line 133, in myGraphTestSpringLayout style=dict(cmap=['blue', 'red'])) File "/u/alfonsda/anaconda3/lib/python3.6/site-packages/holoviews/core/dimension.py", line 1145, in opts backend_options = Store.options(backend=backend) File "/u/alfonsda/anaconda3/lib/python3.6/site-packages/holoviews/core/options.py", line 1059, in options return cls._options[backend] KeyError: 'matplotlib'
I just don't understand what the problem or if there's an easier way to change a selected group of nodes while uploading it from my edge list. I hope there's a solution because the library is really complete and well made.
Here is my code:
`
@dahrs It looks like you have to load the bokeh extension before you start defining options. You can either declare the extension at the top:
hv.extension('bokeh')
or move the renderer declaration to the top:
renderer = hv.renderer('bokeh')
Additionally it seems like you are trying to extract the node edge attributes, something that isn't supported currently but will be once #2714 is merged.
Hi,
I'm new to holoviews, but I've found a way to plot the graph I need from an edge list with weights and all, just like I need it. Now I'm trying to find a way to change the color or shape of the source nodes. But I'm unable to do so because I get a weird error:
Traceback (most recent call last): File "testDatashaderHoloviews.py", line 154, in <module> myGraphTestSpringLayout() File "testDatashaderHoloviews.py", line 133, in myGraphTestSpringLayout style=dict(cmap=['blue', 'red'])) File "/u/alfonsda/anaconda3/lib/python3.6/site-packages/holoviews/core/dimension.py", line 1145, in opts backend_options = Store.options(backend=backend) File "/u/alfonsda/anaconda3/lib/python3.6/site-packages/holoviews/core/options.py", line 1059, in options return cls._options[backend] KeyError: 'matplotlib'
I just don't understand what the problem or if there's an easier way to change a selected group of nodes while uploading it from my edge list. I hope there's a solution because the library is really complete and well made.
Here is my code:
`
Thanks in advance,
The text was updated successfully, but these errors were encountered: