Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add colorbar to figure matplotlib line plots


import matplotlib.pyplot as plt
sm = plt.cm.ScalarMappable(cmap=my_cmap, norm=plt.normalize(min=0, max=1))
plt.colorbar(sm)

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #add #colorbar #figure #matplotlib #line #plots
ADD COMMENT
Topic
Name
2+2 =