Skip to content

Commit

Permalink
fix get_cmap deprecation (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay authored Jan 3, 2024
1 parent 509776a commit 9271592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdahole2/analysis/hole.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,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 9271592

Please sign in to comment.