Skip to content

Importing more than once raises ValueError #5

@endolith

Description

@endolith

If you run import ehtplot.color in a script, it works, registering the colormaps with matplotlib, but if you then run the script again, you get a ValueError "colormap … is already registered."

register() in color/core.py should probably first check if the colormap is already registered, and then unregister it before registering the new version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions