v0.2.1
What's changed
Patch release fixing a cmap argument regression that surfaced for downstream tools (e.g. hippomaps.plotting.surfplot_canonical_foldunfold).
Bug fix
build_plotterpreviously failed withTypeError: unhashable type: 'ListedColormap'when given a matplotlibColormapinstance (such ascmocean.cm.devonorcmcrameri.cm.devon). The dict-membership check now guards on string type, acceptsColormapinstances directly, and raises a clearTypeErrorfor unsupported types. (#162)
Tests
- 7 regression tests covering
ListedColormap,LinearSegmentedColormap, matplotlib named cmaps, brainspace-registered cmaps, mixed string/Colormap inputs, and explicit error on invalid cmap types.
Docs
cmapparameter docstrings onbuild_plotter,plot_surf, andplot_hemispheresnow explicitly documentColormapinstance support.
Full changelog: v0.2.0...v0.2.1