In cctbx.xfel, the matplotlib colormaps are sometimes accessed using matplotlib.cm.get_cmap, which is deprecated starting from matplotlib version 3.7, see issue #894. This PR replaces these calls with a supported equivalent plt.get_cmap.
Furthermore, while browsing for colormap usage in cctbx, I have found multiple instances of colormaps being accessed directly, e.g. matplotlib.cm.jet. This way of accessing colormaps works in maplotlib 3.7 without raising a warning. I asked the developers whether this interface is expected to stay and currently left this code as-is.
In
cctbx.xfel
, thematplotlib
colormaps are sometimes accessed usingmatplotlib.cm.get_cmap
, which is deprecated starting from matplotlib version 3.7, see issue #894. This PR replaces these calls with a supported equivalentplt.get_cmap
.Furthermore, while browsing for colormap usage in cctbx, I have found multiple instances of colormaps being accessed directly, e.g.
matplotlib.cm.jet
. This way of accessing colormaps works in maplotlib 3.7 without raising a warning. I asked the developers whether this interface is expected to stay and currently left this code as-is.