benmaier / netwulf

Interactive visualization of networks based on Ulf Aslak's d3 web app.
MIT License
294 stars 26 forks source link

bugs in documentation code #22

Closed benmaier closed 5 years ago

benmaier commented 5 years ago

as remarked by @vc1492a in openjournals/joss-reviews#1425

I noticed one small item that could be addressed in the examples. In the below screenshot, it appears that a necessary matplotlib import is missing:

68747470733a2f2f692e696d6775722e636f6d2f3354434a43344b2e706e67

I believe this should include import matplotlib.pyplot as plt.

Additionally, in the example located in the filtering section, grp = {u: 'ABCDE'[u%5] for u in G.nodes()} and nx.set_node_attributes(G, grp, 'wum') should be executed after the first visualization and before the second visualization, as opposed to before the first. Executing those lines prior to the first example results in the following error when opening the visualization interface:

68747470733a2f2f692e696d6775722e636f6d2f4f6574396d44582e706e67