Sunday, 15 March 2015

python - matplotlib: change individual cell dimensions in heatmap -


I am creating a heatmap using Matplotlib, but I can create my own based on other information for every cell I want to keep the dimension of Thus, I am currently producing heatmap:

  fig, ax = plt.subplots () ax.pcolor (data t., Cmp = plt.cm.Reds, edgecolors = ' K ') Ax.set_xticks (np.arange (0, 50) + 0.5) ax.set_yticks (np.arange (0, 50) + 0.5) ax.set_xticklabels (keys, minor = false, font size = 7) ax.set_yticklabels (Keys, minor = false, font size = 10) ax.invert_yaxis () plt.show ()  

which produces a good heatmap but with all the cells with all dimensions, I want to change (individually). Thanks for any help (:


No comments:

Post a Comment