Answers for "plt bar color"

1

pyplot bar plot colur each bar custom

plt.bar(y_pos, height, color=['black', 'red', 'green', 'blue', 'cyan'])
Posted by: Guest on July-18-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