1import matplotlib.pyplot as plt
2sm = plt.cm.ScalarMappable(cmap=my_cmap, norm=plt.normalize(min=0, max=1))
3plt.colorbar(sm)
4
1import matplotlib.pyplot as plt
2
3plt.figure()
4m = create_map()
5plt.scatter(*positions[::-1],c=count_vec)
6plt.colorbar()
7plt.show()