Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change register_cmap to register #107

Merged
merged 1 commit into from
Dec 18, 2023
Merged

change register_cmap to register #107

merged 1 commit into from
Dec 18, 2023

Conversation

luigibonati
Copy link
Owner

Description

register_cmap has been deprecated by matplotlib, changing it as described here:

MatplotlibDeprecationWarning: The register_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later. Use ``matplotlib.colormaps.register(name)`` instead.

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Merging #107 (965c334) into main (d08d80a) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

@@ -5,7 +5,8 @@

import mlcolvar
from matplotlib.colors import LinearSegmentedColormap, ColorConverter
from matplotlib.cm import register_cmap
import matplotlib as mpl
import matplotlib.patches as mpatches

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'mpatches' is not used.
@luigibonati luigibonati merged commit 4fc7301 into main Dec 18, 2023
12 checks passed
@luigibonati luigibonati deleted the register_colormap branch December 18, 2023 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant