Skip to content

v0.2.1

Choose a tag to compare

@zihuaihuai zihuaihuai released this 05 May 19:24
8730de8

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_plotter previously failed with TypeError: unhashable type: 'ListedColormap' when given a matplotlib Colormap instance (such as cmocean.cm.devon or cmcrameri.cm.devon). The dict-membership check now guards on string type, accepts Colormap instances directly, and raises a clear TypeError for 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

  • cmap parameter docstrings on build_plotter, plot_surf, and plot_hemispheres now explicitly document Colormap instance support.

Full changelog: v0.2.0...v0.2.1