How do I check when CenteredNorm was included in Matplotlib? And hence if it is available in Matplotlib 3.3.2

Question:

I am trying to use CenteredNorm but despite my matplotlib version being quite recent, it appears to not be available. Any clue of what can be the problem?

How can I check if my Matplotlib version is recent enough to include CenteredNorm? I.e. How do I check in which Matplotlib version CenteredNorm was included?

enter image description here

EDIT: Keeping this question up just for others who are like I was, i.e. don’t know how to check for when (in which version) a function was included in Matplotlib repository, or any other repo.

ANSWER IS AS @DeepSpace commented:
"Sometimes it will say it right in the docs. In this case it did not, so I used "git blame" in the GitHub repo and saw that the commit that added it is tagged with 3.4.0: https://github.com/matplotlib/matplotlib/commit/4b2f1052252d103b7abb68cf536a18d1b14b1077
Me: "I don’t know how to do git blame on a repo that is not sitting on my machine."
@DeepSpace: "There is a "blame" button when viewing a file in GitHub UI"

Asked By: Homero Esmeraldo

||

Answers:

Latest stable release is 3.4.2. A simple update will do it

Answered By: Piotr Nowakowski
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.