Answers for "plt colorbar"

0

legend of colorbar python

cbar = plt.colorbar()
cbar.ax.set_yticklabels(['0','1','2','>3'])
cbar.set_label('Numbers', rotation=270)
Posted by: Guest on April-10-2020
-2

add colorbar matplotlib

import matplotlib.pyplot as plt

plt.figure()
m = create_map()
plt.scatter(*positions[::-1],c=count_vec)
plt.colorbar()
plt.show()
Posted by: Guest on July-13-2020

Python Answers by Framework

Browse Popular Code Answers by Language