Hi everyone,

Can anyone tell me why the colours aren’t being added to the nodes in the image? I’ve added values between 0 and 180 for the colours, but they all show up the same default colour as defined by the cmap.

script.py

```
from math import sin, cos, radians
import networkx as nx
import matplotlib.pyplot as plt
import random
#settings
my_angle = 100.5
#make list of nodes (numbers 1 to 5)
seq_list = list('ADEKR')
point_no = len(seq_list)
my_nodes = [i for i in range(len(seq_list))]
#make coordinates for pos
my_coords = []
c = 0
for i in range(point_no):
my_tuple = (round(sin(radians(c)),4),round(cos(radians(c)),4))
my_coords.append(my_tuple)
c+=my_angle
#Make list of shapes
#AA library
positive_charge = ['K','R']
negative_charge = ['D','E']
#make shape dict
shapes = []
for i in seq_list:
if i in positive_charge:
shapes.append('P')
elif i in negative_charge:
shapes.append('^')
else:
shapes.append('o')
#make of colours (values between 0 and 180)
my_colours = []
for i in range(point_no):
my_colours.append(random.randint(0,180))
colour_max=180
G=nx.Graph()
#draw nodes
c=0
for i in my_nodes:
pos = {i:my_coords[c]}
nx.draw_networkx_nodes(G, pos, nodelist=[i], node_shape=shapes[c])
c += 1
#draw graph
nx.draw(G,node_size=600,with_labels=True, cmap=plt.cm.Blues, node_color=my_colours, vmax=colour_max)
plt.show()
```

Here is the output:

Any help would be greatly appreciated. Thanks for your time.