import matplotlib.pyplot as plt plt.figure() m = create_map() plt.scatter(*positions[::-1],c=count_vec) plt.colorbar() plt.show()