ehpor / hcipy

A framework for performing optical propagation simulations, meant for high contrast imaging, in Python.
https://hcipy.org
MIT License
91 stars 30 forks source link

Matplotlib 3.7 `get_cmap()` deprecation warning #204

Closed ehpor closed 11 months ago

ehpor commented 11 months ago
tests/test_plotting.py::test_imsave_field
  D:\a\1\s\hcipy\plotting\field.py:230: MatplotlibDeprecationWarning: The get_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.
    cmap = copy(mpl.cm.get_cmap(cmap))