Repository navigation
Tags
Tags
Add treemaps (#854) * add treemaps * Move treemap defaults to rc settings and add type annotations * Simplify treemap validation, layout, and rendering * Compact treemap gallery example using shared rc settings * Reuse shared color handling for treemaps * Align treemap labels with literal label semantics * Stabilize treemap strip sizing and validate color options * Handle transparent treemaps, failed draws, and overflowing group totals * Align treemap facecolor aliases and group label contrast * Validate treemap rectangle endpoints before drawing * Preserve cycle options and transparent treemap fills
[pre-commit.ci] pre-commit autoupdate (#837) updates: - [github.com/psf/black-pre-commit-mirror: 26.5.1 → 26.10.0](psf/black-pre-commit-mirror@26.5.1...26.10.0) - [github.com/tombi-toml/tombi-pre-commit: v1.5.2 → v1.7.2](tombi-toml/tombi-pre-commit@v1.5.2...v1.7.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Fix Figure.clear leaving stale state and decouple ui kwarg routing (#760 ) Matplotlib's `clear()` detaches every axes and artist and sets `_suptitle` to None, but ultraplot kept its own bookkeeping pointing at the destroyed objects: a cleared figure went on handing out dead axes through `subplotgrid`, `_get_subplot`, `_iter_subplots` and `_iter_axes`, kept a stale gridspec and label counter, leaked figure-level panels, and raised `AttributeError` from the next `format(suptitle=...)` because the suptitle artist was gone, so this adds `SubplotManager.reset()` and overrides `Figure.clear()` to call it, empty the panel dict, reset the layout flags, and rebuild the label artists via the extracted `_init_super_labels()` (which also covers `clf()`, matplotlib's alias for `clear()`). It further removes a footgun in `ui.py`, which split figure keywords from subplot keywords by introspecting the signatures of `Figure._parse_proj` and `Figure._add_subplots` even though those are pure pass-throughs whose only remaining job was to mirror `SubplotManager`'s parameter list -- a contract nothing enforced, and one that already fired once when collapsing `_parse_proj` to `(*args, **kwargs)` made `_pop_params` see no projection parameters and silently routed `proj` to the figure, raising from `Figure.set()`; `_pop_params` now introspects `SubplotManager.parse_proj` and `.add_subplots`, which actually own those parameters, so the delegators are free to collapse back to `(*args, **kwargs)`. Closes #755, closes #756
PreviousNext