holoviz / colorcet

A set of useful perceptually uniform colormaps for plotting scientific data
http://colorcet.holoviz.org
Other
682 stars 52 forks source link

Deprecation warning from matplotlib register_cmap #93

Closed philippjfr closed 2 years ago

philippjfr commented 2 years ago

Seeing a ton of these in HoloViews and Panel test suites:

panel/tests/pane/test_holoviews.py::test_holoviews_pane_mpl_renderer
  /usr/share/miniconda3/envs/test-environment/lib/python3.8/site-packages/colorcet/__init__.py:6862: PendingDeprecationWarning: The register_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps.register(name)`` instead.
    register_cmap('cet_CET_R2_r',m_rainbow_bgyr_35_85_c72_r)
hoxbro commented 2 years ago

It should be fixed with https://github.com/holoviz/colorcet/pull/90

I think there is also some register_cmap located in Holoviews.