Hi, When studying the example2 you provided, I found this error when running ‘’ax, pos = cpnet.draw(G, c, x, ax)‘’
The error is below:
/usr/local/lib/python3.7/dist-packages/cpnet/utils.py in set_node_colors(c, x, cmap, colored_nodes)
60 )
61 bounds = np.linspace(0, 1, 11)
---> 62 norm = mpl.colors.BoundaryNorm(bounds, ncolors=12, extend="both")
63
64 # Calculate the color for each node using the palette
TypeError: init() got an unexpected keyword argument 'extend'
I use colab to run this example. How to solve this ?
Hi, When studying the example2 you provided, I found this error when running ‘’ax, pos = cpnet.draw(G, c, x, ax)‘’
The error is below:
/usr/local/lib/python3.7/dist-packages/cpnet/utils.py in set_node_colors(c, x, cmap, colored_nodes) 60 ) 61 bounds = np.linspace(0, 1, 11) ---> 62 norm = mpl.colors.BoundaryNorm(bounds, ncolors=12, extend="both") 63 64 # Calculate the color for each node using the palette
TypeError: init() got an unexpected keyword argument 'extend'
I use colab to run this example. How to solve this ?
Thank you in advance!