Matplotlib annotated heatmap example error:

Hi all,

I am trying the code from here:
https://matplotlib.org/3.1.0/gallery/images_contours_and_fields/image_annotated_heatmap.html#sphx-glr-gallery-images-contours-and-fields-image-annotated-heatmap-py

At the last example code, I get an error and the correlation plot cannot be plotted. I only change the farmers name into direction name.

ValueError: The number of FixedLocator locations (6), usually from a call to set_ticks, does not match the number of ticklabels (7).

FYI Matplotlib has their own Discourse, which is probably a better venue for accessing Matplotlib expertise and support: https://discourse.matplotlib.org/

1 Like

Thanks a lot @bryevdv