Answers for "legend colorbar matplotlib specify location"

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
0

legend text color matplotlib

import matplotlib.pyplot as plt
l = plt.legend()
for text in l.get_texts():
    text.set_color("red")
Posted by: Guest on May-14-2020

Code answers related to "legend colorbar matplotlib specify location"

Python Answers by Framework

Browse Popular Code Answers by Language