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

Janitor work: get_cmap wrapper function #254

Open
alhom opened this issue Aug 5, 2024 · 0 comments
Open

Janitor work: get_cmap wrapper function #254

alhom opened this issue Aug 5, 2024 · 0 comments

Comments

@alhom
Copy link
Contributor

alhom commented Aug 5, 2024

See, e.g.:
#253

Repeated pattern of matplotlib colormap API version checks, should be wrapped for brevity under pyPlots.

    if Version(matplotlib.__version__) < Version("3.5.0"):
        cmapuse=matplotlib.cm.get_cmap(name=colormap)
    else:
        cmapuse=matplotlib.colormaps.get_cmap(colormap)
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

No branches or pull requests

1 participant