matplotlib/cmocean

Future incompatibility with MPL

neutrinoceros opened this issue ยท 8 comments

Just wanted to warn you about the pending deprecation of some functions in the matplotlib.cm namespace that are used in cmocean, like register_cmap

matplotlib/matplotlib#23668

If it's any help, here's the patch I wrote to adapt to these deprecations in yt
yt-project/yt#4089

I can also submit a PR here if you lack time for this.

I'm getting a depreciation warning from Matplotlib when I use cmocean because of register_cmap. A bug fix for this issue would be awesome! ๐Ÿ˜„

@kthyng any chance you could give a status on this ?

@neutrinoceros So sorry I've been unresponsive! It's hard to find the time for this at the moment. If you do have the bandwidth for a PR I'll be more responsive. Otherwise I'll aim to work on it in the time frame of the next month. Sorry I can't be faster!

I'm still happy to give it a go. I'm going to aim at delivering a PR before next week !

Any chance a new release can be put out with this fix in it?

@dstansby, @neutrinoceros, @camUrban โ€” There is a new release for cmocean on PyPI now! Sorry for the delay โ€” I think I had a plan to do this earlier but didn't end up getting back to it when I thought I would. The new version is still propagating to conda-forge but hopefully will in the next day.

Amazing, thanks a lot ๐Ÿ˜„