C2DH / jdh-notebook

A collection of Jupyter notebooks for the Journal of Digital History
https://journalofdigitalhistory.org
GNU Affero General Public License v3.0
4 stars 1 forks source link

Figure 6 no more display in notebook https://github.com/jdh-observer/jdh001-4yxHGiqXYRbX #16

Closed eliselavy closed 3 years ago

eliselavy commented 3 years ago

for node in G: if node == "3": color_map.append('#b85399') if node == "0": color_map.append('#b85399') else: color_map.append('#2d95b3')

plot it

nx.draw(G, with_labels=True, node_color=color_map, node_size=500)

ValueError: 'c' argument has 98 elements, which is inconsistent with 'x' and 'y' with size 97.

eliselavy commented 3 years ago

version recommended is matplotlib==2.2.3 with latest version doesn't work....