Skip to content

Commit

Permalink
Port over the get_cmap fix from mdakit-hole2 (#4338)
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay committed Nov 8, 2023
1 parent c36313e commit cfe2516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/MDAnalysis/analysis/hole2/hole.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def _process_plot_kwargs(self, frames=None,
frames = util.asiterable(frames)

if color is None:
colormap = plt.cm.get_cmap(cmap)
colormap = matplotlib.colormaps.get_cmap(cmap)
norm = matplotlib.colors.Normalize(vmin=min(frames),
vmax=max(frames))
colors = colormap(norm(frames))
Expand Down

0 comments on commit cfe2516

Please sign in to comment.