title: TypeError: set_ticks() got an unexpected keyword argument 'labels'
body: <p>I am trying to run the example of a heatmap from: <a href="https://matplotlib.org/stable/gallery/images_contours_and_fields/image_annotated_heatmap.html" rel="nofollow noreferrer">https://matplotlib.org/stable/gallery/images_contours_and_fields/image_annotated_heatmap.html</a></p>
  <p>When I am running the code in PyCharm (Professional) in an Anaconda3 environment it results in an error message.</p>
  <blockquote>
  <p>TypeError: set_ticks() got an unexpected keyword argument 'labels'</p>
  </blockquote>