Skip to content

UltraPlot 2.7.4: Layout sizing and colormap startup fixes

Choose a tag to compare

@cvanelteren cvanelteren released this 10 Nov 07:43
· 5 commits to main since this release
b28f59f

UltraPlot 2.7.4 improves subplot sizing for layouts with spanning axes and fixes the order in which colormaps, color cycles, and configuration files are loaded.

Bug Fixes

  • Physical subplot sizing: Layout constraints now use physical sizes so that refwidth, refheight, and refaspect describe the visible reference axes, including axes that span several grid cells. Changing wspace or hspace adjusts the figure size to preserve the requested axes size. With a fixed figsize, increasing spacing reduces the space available for the axes. The layout also guards against inverted axes when space is exhausted (#856).
The same staggered subplot layout before and after the sizing fix, showing stretched panels before and square panels after

The same layout is rendered before and after the fix using identical data and settings, at the same physical scale. Every panel was requested as a 1.6-inch square. Before the fix, panel heights ranged from 2.05 to 2.28 inches, stretching circular contours into ellipses. After the fix, all five panels measure 1.6 by 1.6 inches. The SVG is included in the release assets.

  • Colormap and configuration startup: Colormaps and color cycles are registered before startup configuration is applied. Built-in and custom cycles selected in user or local .ultraplotrc files now apply to the first plot, while explicit Matplotlib cycle and patch-color settings are preserved. Direct configuration imports initialize the settings once, and later setup calls preserve changes made during the session (#858).

Documentation and Maintenance

  • Clarified installation instructions and missing-dependency messages for chord diagrams, radar charts, phylogenies, and Circos plots. Install the optional dependency with pip install 'ultraplot[circos]', then restart Python or the notebook kernel (#853).
    • Moved the MCP installation and client-configuration guidance from the main README into the documentation (#851).
    • Updated the Black and Tombi pre-commit hooks (#852).

What's Changed

What's Changed

Full Changelog: v2.7.3...v2.7.4