Skip to content

Matplotlib error when trying to run get_coherence.py #71

@ev-anderson

Description

@ev-anderson

Hi Anthony,

I'm trying to run NLLOC Coherence for a seismic catalog and am receiving the following error when running get_coherence.py :

ImportError: cannot import name 'register_cmap' from 'matplotlib.cm'

It seems to be stemming from my matplotlib version (3.10.0) and the fact that the register_cmap import is deprecated. I tried downgrading to an older version of matplotlib (3.6.0), but that seemed to break it further, throwing an error and suggesting downgrading now NumPy to version<2.

Before I go down the rabbit hole of downgrading any further dependencies in my coherence environment, I thought I would check to see if you have come across this before. Thanks again for all your help!

Best,
Evan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions