nipreps / niworkflows

Common workflows for MRI (anatomical, functional, diffusion, etc)
https://www.nipreps.org/niworkflows
Apache License 2.0
85 stars 52 forks source link

CI: AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap' #865

Closed DimitriPapadopoulos closed 3 months ago

DimitriPapadopoulos commented 3 months ago

What happened?

This error started appearing in CI jobs recently.

What version of the software are you running?

master

Please copy and paste any relevant log output.

if cmap is None:
>           colors = cm.get_cmap("tab10").colors
E           AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'

Additional information / screenshots

See CI error here: https://github.com/nipreps/niworkflows/actions/runs/8720299614/job/23921615205?

I presume this is related to https://github.com/matplotlib/matplotlib/pull/23668.