Backport PR #49377 on branch 1.5.x (BUG: Fix passing Colormap instance to plot methods with mpl >= 3.6)
Backport of #49377 to 1.5.x

- [x] closes #49374
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

Looks like https://github.com/pandas-dev/pandas/pull/48695 which added some additional mpl 3.6+ cmap logic hasn't been backported to 1.5.x (this was the cause of the merge conflict) Can you link the original pr? > Can you link the original pr?

In the top comment? Yes, thx thx @zmoon 