Skip to content

version 0.2.0

Compare
Choose a tag to compare
@mathause mathause released this 01 Jun 14:41
· 125 commits to main since this release

Mayor release, mostly introducing the new colorbar functionality.

  • add _color_palette that selects colors from the whole range of the colormap. Previously we used the seaborn logic that excludes colors at the edge of the colorbar (closes GH:#1).
  • the colorbar functionality was entirely redesigned:
    • new top-level function mpu.colorbar
    • added aspect keyword which defines the ratio of long to short side
    • the default width/ height is now aspect=20 (was size=0.04)
    • pad and size are now scaled by the width/ height of the axes (was width/ height of the figure)
    • pad now uses the matplotlib default (0.05 for vertical bars and 0.15 for horizontal colorbars)
  • add _is_monotonic to infer_interval_breaks
  • renamed sample_data_3d to sample_data_map