Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add label to colorbar

import matplotlib.pyplot as plt

fig, ax = plt.subplots()
m = ax.imshow(X)
cbar = plt.colorbar(m)
cbar.set_label('X+Y')
plt.show()
Source by matplotlib.org #
 
PREVIOUS NEXT
Tagged: #add #label #colorbar
ADD COMMENT
Topic
Name
4+8 =