Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to change text in heatmap matplotlib

for i in range(len(vegetables)):
    for j in range(len(farmers)):
        text = ax.text(j, i, harvest[i, j],
                       ha="center", va="center", color="w")
 
PREVIOUS NEXT
Tagged: #change #text #heatmap #matplotlib
ADD COMMENT
Topic
Name
9+8 =