I am trying to run the example of a heatmap from: https://matplotlib.org/stable/gallery/images_contours_and_fields/image_annotated_heatmap.html
When I am running the code in PyCharm (Professional) in an Anaconda3 environment it results in an error message.
TypeError: set_ticks() got an unexpected keyword argument 'labels'
There is no need to update matplotlib version if you are using version of matplotlib 3.4.3.
Here is the link for matplotlib 3.4.3 documentation and avoid using labels keyword in ax.set_xticks() function as said by JohnC