Changelog¶
All notable changes to Ferrum are documented here.
Unreleased¶
No unreleased changes.
0.26.0 — 2026-11-16¶
The other-column bindings block. A figure or composite mark refits when a later binding names another column, a Date or Datetime column draws as a category axis, Axis(label_map=) relabels tick text only, annotation coordinates on categorical axes are refused or skipped out loud, and ordered-pair and sequence parameters read one set of shapes on every door. Several of these reverse earlier behavior; each reversal has a dated entry in design-docs/spec-history.md.
Added¶
None
Fixed¶
- the jointplot hist remedy renders, a date or Duration colour reads one way on every layer order and door, range refusals share one text, and an interactive chart saves one snapshot
- bytes and unordered collections are refused on scale domains and ranges, a dict is refused on selection fields, and a date refused on a category axis names its label
- the non-finite annotation coordinate refusals share one predicate
- a number, date or non-finite annotation coordinate on a categorical axis is refused, an unknown category is skipped with a warning, and a date or ISO label lands on its band
- Axis(label_map=) relabels tick text only, applied in Rust at draw time, and a tick follows its axis under interactive zoom and pan whatever its text
- an uncoloured annotation fill and an unstyled callout draw the theme's colours on every route, and the colour words none and transparent draw no paint
- the statistic transforms' docstring examples run and render, and a reversed or equal density_data extent on the dict door is refused
- the regplot and lmplot bin and aggregate remedies use the generic text, and every followed remedy renders
- a figure refits when a later encode binds another column, through every layering door
- an unordered or byte collection is refused on every ordered-pair parameter, a reversed or non-finite statistic range gets a typed refusal, and a list is accepted wherever a tuple is
- BreakAxis(axis=) under a caller's CoordFlip means the caller's channel
- a ferrum warning names the caller's line on the auto-raster, override and Rust render routes
- a Date or Datetime column draws as a category axis in time order on every category channel, a Duration there is refused with a remedy, and datetimes sharing a millisecond warn once
- an unparseable annotation colour is refused at construction in the caller's words, and break rollups name the caller's axis under a flip
- a mapping is refused on every sequence parameter with no dict form, in one voice on the Python wrappers and every name-list constructor
- a composite mark that resolved early rebuilds when a later encode binds another column
- a figure call reads its encode= x/y as its own x and y, a jointplot limit keeps the caller's scale, and a 2-D histogram titles its axes by field
- an interactive chart renders once, so its HTML and JSON come from the scene built at construction and each warning appears once
- a zero-row leaf of a concat or grid beside a populated leaf draws its frame and warns once, and a composition whose every leaf is empty is refused however its layers were combined
Other¶
- the contract text states every behavior the other-column bindings block shipped and names every reversal
- every ferrum._core docstring example runs and renders under a must-pass gate
- a date-category legend answers a format as its label-text twin does
0.25.0 — 2026-11-15¶
The structural wave. Statistics and transforms now treat empty, null, infinite and date inputs by one rule on every mark and door, impute= works on every key dtype, and annotations are placed in the caller's channels.
Behavior changes to check when upgrading: a bare-string groupby on a transform constructor (fm.Kde, fm.Bin, fm.Smooth and siblings) is refused (pass a list; a mark's own groupby="g" still means one column); a set, byte string or non-dict mapping on a sequence parameter is refused; a category annotation coordinate on a numeric or temporal axis is refused; an annotation with no colour draws the theme's text colour instead of #333; a zero-row frame through box, summary, error-extent and pivot statistics draws its frame and warns instead of raising; impute keyvals add to the observed keys and imputed rows are inserted at their key's place.
Added¶
None
Fixed¶
- residplot refuses an x2 or y2 no residual point can draw
- a regression refusal's remedy names a door that renders
- a regression refusal's remedy names a door that renders
- the null census names an empty band slot in the caller's channels
- an emptied histogram or boxen group keeps its legend entry, panel or slot and is named
- a violin or QQ group that cannot be estimated keeps its place and is named
- a 2-D statistic group or panel that cannot be estimated keeps its place and is named
- a horizontal catplot's messages name the channels the caller wrote
- a group a log axis empties is reported once, by the log warning
- the density statistics give one reason for one cause, and a QQ with nothing to plot warns and draws empty
- a boxen whose every group key is null warns and draws empty
- a null category or hue is dropped and counted on every mark, and a faceted impute draws its imputed points
- an infinite value is unusable on every statistic and data transform, as a null is
- a Logistic or Glm fit that cannot be computed warns and draws, as its siblings do
- a date or datetime column groups on every grouped transform and statistic
- a date or datetime key splits a mark into series on every grouping partition, and a key column no reader takes is refused instead of merged
- one impute rule serves transform_impute and the encoding options, with imputed rows inserted at their key's place
- impute= on a value channel completes every series a layer draws, on every key dtype, option and layer door, and an impute that cannot be honoured is refused
- a hue-by-category cell whose rows are all unusable is named by a warning, and LayerChart reports a shared impute fallback once
- a layer's routed rows, its series keys and a log axis's emptied groups each have one owner, so the drop, the impute and the draw agree on every layer
- the impute docstring states the continuous-colour rule as its own sentence
- a zero-row frame through a box, summary or error-extent statistic draws its frame and warns once instead of raising
- a set, mapping or byte string is refused wherever a transform or impute option reads order from it
- an Arrow column of a view type loads as its plain twin at ingest instead of crashing the process
- a log-axis warning calls infinite values infinite and suggests only a domain that renders, and a facet-sort warning names the caller's channel
- the Logistic, Robust, GLM and Smooth docstring examples run and render as written, and a test holds every example to that
- a zero-row frame through a pivot draws its frame and warns once, publishing exactly the names later steps and drawn channels read
- an annotation coordinate given as a category lands on that category's band on every route, a span between categories covers whole bands, and a category the axis cannot place is refused or warned
- under a caller's CoordFlip an annotation's coordinates, refusals and warnings mean the caller's channels, and a bracket's below direction draws down
- an annotation with no colour given draws the theme's text colour on every route, every groupby door refuses a bare string, bytes, set or mapping in one voice, and dict views are read in order like a list
Changed¶
None
Other¶
- build the macOS wheel on macos-latest and pin the docs build to the locked zensical
- build the docs with the toolchain uv.lock pins, transitive dependencies included
- Revert "fix(api): a regression refusal's remedy names a door that renders"
- each shared warning sentence is spelled once across the test files
- the impute completion tests live in the one impute tests module
- the contract text states the close batch's zero-row, log-axis, sequence-refusal, view-type and annotation rules as shipped
- the batch's test modules share one svg digest helper and one interactive-scene accessor
- five configure goldens carry the theme text colour on default-coloured annotation text
- every groupby constructor's docstring states the forms it accepts and that a bare string, bytes, set or mapping is refused
- a groupby docstring says a mapping other than a dict is refused
0.24.0 — 2026-11-09¶
Wave-1 hardening closes 24 issues (#92, #107, #118, #122, #126, #133, #136, #140, #148, #152, #162, #166, #179, #183, #190, #197, #198, #204, #208, #216, #220, #238, #240, #243) under one standing policy: refuse malformed, warn degraded. Every reported silent accept/degrade becomes a typed refusal or a named warning; four changes are disclosed as user-visible behavior changes (see Breaking, below); everything else is additive (a new error message, a new UserWarning) with no other rendered geometry moving.
Wave-2 break-axis geometry closes four more issues (#226, #228, #230, #231). #226 fixes the root pixel-range defect that silently discarded a broken axis's own scale padding on every effective break, and the tick-label rigid-translation fix that closes the label↔dash offset discrepancy it exposed. #228 unifies the annotation-clip contract with mark geometry: an extent annotation now clips into visible pieces instead of being suppressed whole the moment a gap touches it. #230 closes nine disclosed residuals of the pixel-space surgery model (same-axis merge, hidden-sentinel poisoning, per-segment vertex splitting, split-corner squaring, exact glyph anchors, split-key suffixing, per-facet-panel application, typed Polar/Geo refusal, and temporal gap bounds). #231 lands the discriminating coverage that pins all of it — an arrowed-segment golden plus e2e test, a tick-label-offset assertion, a CoordFlip physical-axis characterization test, and faceted-annotation coverage — with no behavior change of its own.
Wave-3 diagnostics sklearn-parity closes the pre-batch-I campaign's eleven wave-3 issues (#189, #203, #206, #209, #211, #212, #213, #217, #219, #222, #224 — the last of these in two parts, #224a and #224b) plus five research-confirmed findings (N1–N5), making the model-diagnostics layer's target handling, class resolution, cross-validation, compare= composition, embeddings validation, caching, and metric display truthful and sklearn-consistent. #203 is the first of its issues: the answer a corrupted classification target used to get depended on the target's dtype and on which resolution tier the model happened to land in, and every branch of that fork ended silently or raggedly. One matrix now covers the seven ModelSource classification methods and the eight classification methods of the precomputed path — nulls refuse, stray values warn (naming what actually happens to the rows: absorbed as negative on a curve, dropped from the matrix on a confusion matrix), and the total-mismatch refusal reaches the two builders and the one arity it never had. #206 and #224a close the two remaining classification_report gaps: the model path now translates model.predict into y's domain through the same correspondence the confusion fix built (closing the one classification surface #203 left outside the target-hygiene contract) and both classification_report_chart paths now order the class axis identically. Clean targets are byte-identical and no golden moved. #209 closes the multiclass partial-dependence gap: ModelSource.partial_dependence() kept only sklearn's [0] output for a multi-class classifier, silently discarding every other class's curve; it now emits one row group per class with a class_label column, mirroring the convention shap_values() already used — and shap_values() itself gains the one case neither method had answered, numbering a classes_-less multi-output regressor's outputs instead of labelling them all "target". #211 (with N2 and N3) restores two spec claims that had quietly gone false: discrimination_threshold(cv=<int>)'s hand-rolled KFold shuffled with random_state, so "ignores random_state" was no longer true, and a training fold could land with only one class and no warning. It now resolves via sklearn's own unshuffled StratifiedKFold convention — no seed to thread, so the claim is true again — and warns by name when a training fold is left with one class. #213 closes the wave's compare= composition gap: discrimination_threshold_chart was accepting compare= and dropping the model column at unpivot, so the models it was asked to compare rendered as one interleaved zig-zag under a single pooled optimum — it now composes small multiples, one panel per model, each panel built by re-entering the single-model builder so its optimum and threshold rule are per-model by construction. #212 closes the last compare= gap in the classification visualizer family: CalibrationVisualizer accepted a symmetric *models overlay but refused compare= outright, so the one multi-model shape it offered was also the one that reports no .score() and no single headline number — asking it to measure one model against rivals meant giving up the base model's own answer. It now accepts both idioms, for the two different questions they ask. #222 (with N4) closes the embeddings perplexity gap: .embeddings(method="tsne")'s default forwarded unclamped to manifolds-rs, so the unmodified default refused on every dataset of 31 rows or fewer; it now adapts to min(30, n_samples - 2), and an explicit out-of-range or non-finite value refuses by name instead of leaking an internal message or panicking the PyO3 boundary. #224b (with N5) closes the cache gap the same research pass confirmed: BaseSource._cache_key's repr() fallback could collide two logically different calls onto the same cached frame (a cv splitter's reused memory address, a truncated numpy repr, a truncated shap_values(background=) string) — it now normalizes array-likes centrally and never caches a value that stays unhashable after that. #189 closes a narrower gap on the same mark #213 touches: an explicit mark_discrimination_threshold(optimum_label=True)/(threshold_line=True) used to vanish silently when metrics= excluded "f1"; it now refuses, naming the flag and metrics=, while the un-passed default keeps its pre-existing silent downgrade. #219 settles which surface owns a metric: annotate_auc/annotate_ap/annotate_brier drove three surfaces at once — the chart title, the legend entry and the endpoint overlay — so a three-class ROC printed each class's AUC three times, and the title printed it whether or not the flag was set, which meant annotate_*=False never actually took the number off the figure. The overlay now owns it alone, the titles keep their plain names, and the flag means what it says. The remaining research finding, N1, closes alongside #217, the pyarrow-table asymmetry the same research pass was investigating: #217 as filed turned out to be a phantom, already fixed by wave 1's 545be19a, and closes at origins on that evidence rather than on anything in this wave — but underneath it, N1 found and fixed a live, deeper defect in the same code path: a multi-chunk pyarrow.Table silently truncated to its first chunk on the raw-data rank path (measured on a 200-row fixture split into two chunks: variance moved from 1.169347 to the correct 1.018316).
Wave-4 figure helpers closes ten issues (#90, #121, #130, #131, #192, #193, #194, #199, #200, #201 — the last in two parts, #201-B and #201-D) plus a zero-extent-rect rider in the bar renderer. The theme is a parameter that was accepted and then not consulted: a channel's title= reached axes but no legend (#90), bins= reached a door that read only integers and silently fell back to Sturges (#193), multiple="stack" reached displot's own position adjustment but never the binning that makes a stack possible (#194), line_kws reached a rewrite that ran after the layers it meant to style existed (#199), and the hue= column reached an ecdf Bin that had already thrown it away (#200). Three more are cases of the wrong question being asked: eligibility for the single-axis exemption asked the composed spec's placeholder root mark rather than the marks that draw (#201-D), the hue= typing helper asked whether the caller passed an object rather than whether they stated a type (#130), and catplot(kind="count") asked the raw argument what its seven siblings ask the resolved channel (#192). #121 takes the iso-line grouping key off the color channel it was missing against and puts it on detail, so the reference curves finally wear the grey they always declared. #131 adds no behavior: it puts mark_tick into the mark×dtype color-parity sweep it was missing from, so the read batch E gave it cannot quietly go away again. Nine of the ten move user-visible output; every one is disclosed under Breaking, below, with the measured before/after. The wave's closing review added a second round of user-visible change on top: multiple="dodge" now bins on shared edges and subdivides its band (which reaches every dodged span mark, not only displot, and closes a silently dropped bar along the way), displot answers in its own voice instead of leaking mark_histogram()'s, the fit paths accept an encoding object on every method, and an all-zero-extent bar batch says why it drew nothing. Those are disclosed under Breaking too.
Wave-5 coordinate, scale and mark fidelity closes eleven issues (#95, #111, #113, #124, #153, #171, #172 — in three parts, #172(1)/(2)/(3) — #182, #184, #185, #247 in two parts, #247A and #247B) plus #94, which #182's gate closes with it, and three fixes added mid-wave that no issue named. The theme is a fact that was inferred where it should have been declared. A bar's zero-anchored scale was indistinguishable from one the caller wrote, so an overlaid bar bypassed the cross-mark domain union and drew against a domain its own axis did not describe (#247A). Two mark drawers inferred the value axis from a y-axis idiom that CoordFlip invalidates, so a flipped area closed its fill on the wrong edge and a flipped ribbon drew nothing at all (#172(2)/(3)). A sort shorthand's channel token was read in rendering space while the caller wrote it in authored space, so sort="-y" stopped working the moment a flip was added (#95). Layout inferred that a hidden axis still needed its gutter (#182), a composite inferred which panels were marginals from the grid's shape, and a layered chart inferred its ordinal axis from the chart-level column alone. Four things are consequently now declared on the wire — Layer.coord, MarkKwargsSpec::value_axis, ScaleSpec::Linear::system_injected, and CompositeNode::Composite::extent_alignments — each additive and skip-when-absent, each proven byte-stable by round-tripping a pre-change payload, and each landing with the heuristic it replaces deleted rather than left beside it. Alongside them: a declared or defaulted category channel now bands whatever its dtype (#171 + #185), the three position adjustments agree on which dtypes they can read and a stacked time series renders where it used to raise (#184), nice=True on a typed scale class stops being discarded (#153), a legend swatch shows the encoding it stands for (#111), a band exists only if something is drawn in it (#247B), and the shared ordinal axis covers every layer's categories so a layered chart stops silently dropping marks (a user ruling, added mid-wave). That last one is also where the wave's closing review found it had overclaimed: the ordinal ladder read the CHART's flip for every layer while its numeric sibling read each layer's own, so #172(1) was honored on continuous axes and still silently dropping marks on categorical ones. Both halves are closed now — the ladder reads each layer's own coord, and the member a shared panel genuinely cannot hold refuses loudly instead of rendering without it — and the corrected scope is stated in the #172(1) entries below rather than left implied. Every user-visible output change is disclosed under Breaking, below, with the measured before/after.
Wave-6A structural hygiene works through ten issues (#105, #110, #145, #146, #147, #158, #163, #196, #229, #237). Most of it is internal and byte-stable by proof: four modules past the repo's own promotion trigger get job-named homes, and four pieces of untyped state (a string sentinel, a conflated integer, four parallel booleans, a stringly axis) become types. The wave's research found four live defects inside what was filed as hygiene, each named under Fixed: a cleared paint lost to the color channel (#110), an interactive keyed transition wrote onto the wrong instances whenever chrome shared the mark buffers (#105), and an independent-x facet axis ignored Theme(cull_threshold=) (#146) and dropped a temporal tick format (#147). The deliberate output changes are listed under Breaking, and the module moves under Internal. #229(4) is closed WONTFIX-by-design (see Internal).
Wave-6B single-home dedup and rule ownership works through eleven issues (#119, #123, #128, #137, #149, #164, #165 in four parts, #176 (one item), #195, #214, #239); #218 is closed on evidence already in the tree. Each rule that was written in more than one place gets one owner (Inset bounds classification, the compare= merge, the aggregate vocabulary, the secondary-key rule, the registry-consumer lint), and the byte-stable half of that is listed under Internal. The wave's research found three live defects inside what was filed as dedup: a layer's style leaked into kwarg-less sibling layers (#119, listed under Breaking because it changes rendered output on purpose), Shape(scale=) was inert so pairplot(markers=) ignored its argument (#123), and a string conditional literal on a numeric channel repainted the mark's fill on selection (#128). Inputs that were accepted and did nothing, or were silently laundered, now refuse by name under the same refuse malformed, warn degraded policy as wave 1; each such refusal is listed under Breaking. The aggregate vocabulary's three surface changes are disclosed as one entry. No golden moved.
Wave-6C's disclosed changes, below, are #120(6)'s numeric-door unification, #120(7)/N2's auxiliary-warning-count fix, #120(9)/N1's layer shared-axis refusal, #139(2)(3)(4)'s padding.auto hardening, #159's ScaleSpec tag-vocabulary publication, #159(10)'s override-propagation fix, #167(1)'s Utf8View/LargeUtf8 normalization, #176(7)'s violin hue warning, #176(8)'s Layer(transforms=) refusal, #176(10a)(10b)/N5's facet-state merge, #176(11)/N3's Facet(sort=) fix, #245(3)'s conditional-collision message, N4's BreakAxisIneffective domain-order fix, and F19/F19b's interactive-dash fix. Also in this wave: #221 (diagnostic parameter-forwarding test coverage) and #235 (a headless-Chrome pixel harness for conditional encodings).
Wave-7 capability closes four issues (#108, #116, #141, #161), each turning an accepted-but-inert parameter into real behavior. #108: a range-only opacity scale over a constant column is honored (0.3 → 0.5 in the reported case). #161: mark_swarm(size=) is the drawn diameter (default radius 3.385 → 2) and the placement diameter, centres sit size + spacing apart (was 2·(size + spacing)), packed at render time in pixel space. #141: a secondary y axis can draw its own gridlines on request, and every existing dual-axis chart stays byte-identical. #116, the only new subsystem: size= on a line is a per-vertex width (a taper) on every backend, with its constant twin, a refusal when size and stroke_width both set one line's width, line-swatch size legends, and a conditional size honored interactively. User rulings made during the wave add four more disclosed changes: a non-positive constant size= refuses on mark_line and mark_point, a later layer's auxiliary channels promoted to the chart like color (superseded below: the layer-encoding model instead keeps every binding on the layer that declares it), a constant size= refuses on the eleven primitive marks that never drew it and on every composite mark whose emitted marks never draw it, and a size conditional restyles only the lines it reaches. The wave's close adds six more: one Rust table decides which style fields each mark draws at every door (a field the mark never draws refuses, and a drawn field missing its enabling input warns), blend= draws on every mark in both outputs, a conditional of any channel restyles only the marks that declared it, a selection reacts only to input on its own chart's panels, a swarm packs at the largest dot it draws, and a style refusal raised while a figure builds its chart names the figure. The fixes are under Fixed and the refusals under Breaking changes, below.
Three defaults change, each disclosed under Breaking with exact before and after values (#135, #157, #125). Automatic edge padding (padding.auto) is on by default and owned by one built-in default, so a chart whose last continuous-axis label overhangs the canvas now reserves room for it. A band scale named with no padding draws exactly like the auto-inferred categorical axis instead of applying a hidden 0.1. clustermap draws heatmap's default white cell border through one shared helper. A scale-type switch through .override(<channel>_scale_type=...) keeps what the padding you set meant under the new type. Charts that exercise none of these render byte-identical. The wave's close settles three more things, each under Breaking changes with measured values: padding.auto judges a rescue by how many of an x axis's own labels it loses (an even thinning of a continuous axis is not a loss), a faceted chart draws the axes the layout lays out for each panel (titles only on the outer panels, a hidden axis hidden, explicit-range category axes on their marks), and every width and height door refuses a malformed size at the call in its own voice.
Layered charts follow one model. Each layer draws its own bindings over exactly one parent (the chart it is attached to, or what you write on a + composition), never a sibling's; each layer computes its own statistics at its own grain; every channel accepts the same aggregate= and bin= on every door; one scale and one legend per channel are built from every layer that draws it; and +, Chart.layer, fm.Layer(data=), SecondaryY and every fm.LayerChart route, static and interactive, draw the same chart. Several layered charts draw differently as a result, each listed under Breaking with how to get the old picture back, and the rest are fixes listed under Fixed. Four reference images and the render digests of three pinned charts moved, each after its before and after renders were reviewed (last bullet under Breaking).
Added¶
-
A layer carries its own coordinate system, on the wire (#172(1)).
Layergains an additivecoordslot (skip-when-absent), andChart + Chart— henceLayerChart,.interactive(), andresolve={"y": "independent"}, which all merge through it — carries each secondary member's own coord onto the layers it contributes instead of dropping it.fm.layer(bar, arc_chart.coord(fm.CoordPolar(theta="x")))now renders the arc member's wedges on both output kinds rather than refusing on the interactive one, andfm.layer(bar, point_chart.coord(fm.CoordFlip()))renders the point member flipped rather than silently unflipped, which was the half of the defect that produced no diagnostic at all. A layer's coord places that layer's marks; the panel's chrome, aspect ratio and scale domains stay the chart-level coord's. So what ships is: honored where the panel can hold the member, refused loudly where it cannot — on both output kinds, and never a silently different chart. A per-layer coord is unplaceable in two ways, and both refuse with the same typedValueErrornaming the layer and the coord:- it declares a panel property instead of a placement (
xlim=/ylim=,expand=False,clip=False,CoordFixed(ratio=)) —layer 1: fm.CoordFixed declares a fixed aspect ratio ... which belongs to the panel every layer shares; - or its channel exchange lands a column on an axis that cannot draw it —
layer 1: fm.CoordFlip leaves this layer's positional channels in the opposite space from the panel's axes, and the panel's y axis is continuous while the column that lands on it ('cat': Utf8) cannot be drawn against a continuous axis. This isfm.layer(bar, point.coord(fm.CoordFlip()))over a sharedx="cat:N", y="v:Q": the exchange asks the panel's quantitative y to hold a categorical column, and one merged panel cannot hold both. Move the coord to the first member (whose coord IS the panel's), or give the member its own y withresolve={"y": "independent"}, which genuinely can hold it.
Each refusal is scoped to the routes that actually cannot honor the declaration, which is not the same set for the two reasons: the panel-property reason refuses on all three merged-flat routes, while the channel-exchange reason refuses on the two that put every member on one shared axis pair (static
chart + chart,.interactive()) and renders onresolve={"y": "independent"}, where the member's own y slot resolves from its own post-flip column. A panel-scoped member coord still renders on the static shared-y route too, where each member is its own composite leaf and nothing is dropped. The asymmetry is deliberate: refusing where a route can honor the declaration would regress a working composition, so it is the routes' real capabilities showing through rather than two answers to one question. Not addressed and flagged rather than half-built: interactive zoom over a mixed-coord panel, since a polar layer's wedges are baked polar pixels and WASM zoom would treat them as Cartesian. Static output is exact. -mark_stylecarries avalue_axisdeclaration (#172(2)). Additive and skip-when-absent, reusing the enum GH #77 added for exactly this purpose rather than introducing a parallel one.desugar_densitystamps it, so a producer-horizontal series is a stated fact instead of something the renderer guesses from traced geometry. The heuristic it replaces (traced_edge_axis, which inferred horizontality from vertex order and misclassified a vertical area whose rows arrive unsorted) is deleted. -ScaleSpec::Linearcarries asystemInjectedprovenance bit (#247A). Additive, skip-when-false, so every pre-existing payload's bytes are unchanged. It distinguishes the zero-anchoring scale ferrum injects on a bar from one the caller wrote, which is the distinction the cross-mark domain union needs in order to know whose word to take. Disclosed: the wire key is hand-settable. The Python producer crosses the same boundary every user dict crosses, soscale={"type": "linear", "systemInjected": True}is accepted on a linear scale — a caller can assert ferrum's authorship of a scale the caller in fact wrote, and that leaf then yields to the union. Since the field's stated purpose is telling the two authorships apart, the advisory nature of that one spelling is disclosed rather than guarded; it is pinned bytests/test_layer_union_provenance.py::test_hand_written_system_injected_scale_is_accepted_and_yields. TheChart.override(...)registry deliberately excludes the leaf — there is no.override(y_scale_systemInjected=True)— with a test guard asserting the excluded key really is in the gate's accepted-key table, so the exclusion cannot rot into a coincidence. - A composite grid declares which cells share an extent (#182 follow-on).CompositeNode::Compositegainsextent_alignments: Vec<{follower, leader, axis}>(cell positions, additive, skip-when-empty), emitted by theJointChartandClusterMapChartlowerings, so "this panel annotates that one" is declared rather than recognized from the grid's geometry. The shape predicate that had been guessing it is deleted: a clustermap is also a 2x2 grid with a hole, so the predicate separated two different figures by which corner was empty. A declaration naming a nested composite cell cannot be honored and now warns (RenderWarning::ExtentAlignmentUnresolvable) naming the follower, leader and axis, rather than dropping silently. -stroke_dash=accepts the named linetypes on every surface that acceptsstroke_dash=(#124).mark_line(linetype="dashed")worked andmark_line(stroke_dash="dashed")raised, because the gate read the caller's spelling rather than the canonical key, so the canonical form fell through tofloat("dashed"). Measured, the delta was exactly the five named linetypes — comma strings with or without spaces, float lists, int lists, tuples, both empty spellings and the junk refusal were already symmetric — so the canonical kwarg was a strict subset of its own alias, and it is now the superset. One normalization serves four surfaces:MarkBasemark kwargs, andannotate_hline/annotate_vline/annotate_abline, which takestroke_dash=and have nolinetype=parameter of their own, so the named forms were unreachable there by any spelling. See Breaking forfm.SelectionMark, which went the other way. No value that was accepted before renders differently: 138 tests pin the form matrix across all four surfaces on the renderedstroke-dasharray, not on intermediate values. -mark_area(position=Stack())over a date or timestamp x renders (#184). It raised for every input before. This is not a second keying model bolted on: a stack over a continuous quantitative axis already binned by exact value (anInt32x:Qstacks to its group sum, measured at ladder max9.0against an unstacked control of6.0), so exact-value keying was the established behavior andTimestampwas the one dtype the reader could not spell. -Bin(bins=),mark_histogram(bins=)anddisplot(bins=)accept a closed binning vocabulary (#193):"sturges","fd"/"freedman_diaconis", a positiveint(an exact bin count), a positive finitefloat(a bin width), orNone. It is mutually exclusive withbin_count/bin_width— naming both refuses rather than dropping one answer. Everything outside the set refuses with a typedValueErrorin the voice of the entry the caller invoked; see Breaking, below, for what this changes for callers who were relying on the old silence.ferrum._core.validate_bin_rule(bins, ctx)is the new shared replay hook that lets a figure entry refuse in its own name without a second copy of the vocabulary living in Python, mirroring the existingvalidate_scale_dict. -mark_histogram(position_by=)(#194) names the column themultiple=position adjustment groups by, so forwarding the mode to the desugar does not cost the caller its grouping to the desugar's own position overwrite. It accepts a column name (str) orNone; anything else refuses by name —mark_histogram: position_by must be a column name (str) or None, not Color; received Color('g')., withPass the column name itself: position_by='g'.appended when a channel object was passed. It is deliberately documented as a column name rather than the figure layer's "str or encoding" spelling:position_byfeedsStack(by=)/Dodge(by=), whose contract isOptional[str], and unwrapping would silently widen a contract this change is only now creating. -layer_kwargs={"<layer>": {...}}aims mark kwargs at one sub-layer of a composite mark (#199). A composite mark's own**mark_kwargsreach every layer it emits, so a barestroke=onmark_smoothrepaints the CI band as well as the fit line;layer_kwargs=is the narrower spelling. It is keyed on the same sub-layer vocabulary (LAYER_NAME_CATALOG) that the figure-levelmark={...}override already uses, and it is owned by the pending dispatcher rather than by any one mark — so it is live on every composite routed through it, not onlymark_smooth:mark_boxplot(layer_kwargs={"median": {...}}),mark_violin,mark_prand the diagnostic family all take it. An unknown sub-layer name refuses by name — measured,mark_smooth(layer_kwargs={"lines": ...})givesmark_smooth(layer_kwargs={'lines': ...}): unknown sub-layer 'lines'; this chart's sub-layers are ['line', 'metrics', 'ribbon']. Pass style that should reach every layer as a plain mark kwarg instead, e.g. mark_smooth(opacity=0.5)., and a mark with no named sub-layers says so:mark_histogram(layer_kwargs={'bar': ...}): unknown sub-layer 'bar'; this chart has no named sub-layers to aim at. Pass style ...mark_smoothdeclares the parameter explicitly and validates eagerly, so a typo refuses at themark_smooth(...)call; every other composite takes it through**mark_kwargsand refuses at render — one rule and one message, two timings. When both spellings name the same key the narrower one wins — see Breaking, below.lmplot(line_kws=...)is unchanged and now forwards aslayer_kwargs={"line": ...}. -CalibrationVisualizer(model, compare={"rival": other})now works, with the same distinguished-base semantics asROCVisualizer/PRVisualizer/DiscriminationThresholdVisualizer(#212): the positional model is the base (labelled"base"),has_scoreisTrue,.score()scores that model, and_metricscarries a singlecalibration_error— the base model's own, never pooled across rivals. The call previously raisedTypeError: CalibrationVisualizer.__init__() got an unexpected keyword argument 'compare'. The variadic*modelsoverlay is unchanged (symmetric:has_score=False,score()returns0.0, onecalibration_error[<model name>]key per model), and the two are mutually exclusive — several positional models together withcompare=raisesValueErrornaming both idioms.fitresolvescompare=through the same helper the three curve visualizers use, socompare={"base": ...}and a non-dictcompare=refuse there with identical messages, and the rendered chart is byte-identical tocalibration_chart(model, X, y, compare=...). No existing call's output moved and no golden changed. - A RustTransformWarningchannel (#162) now names every transform-level degrade that used to happen in silence — the all-NaN-panel family (Smooth,Robust,RegressionData,LoessData,Kde),stat_smooth'sgamkclamp,LetterValue's named-depth cap, andImpute's fallback shapes each surface aUserWarningnaming the transform, the group (when grouped), and the reason. Render output is unchanged; only the diagnosis is new. - A null groupby key now warns instead of silently pooling into an unlabeled group, across the whole partitioning family (#179/#197) — see Breaking, below, for the accompanying ordering and null-handling changes. -mark_raster()validates itsaggregate/fieldcombination eagerly, at call time (#136), instead of deferring an invalidaggregateto a confusing render-time Rust error, or a missingfield=to whenever.encode()happened to resolve. -_Facet.ncols/.nrows(Chart.facet(ncols=)/nrows=andencode(facet=fm.Facet(columns=))) now validate as positive integers at construction (#238) — a non-positive or non-integer wrap count used to construct silently and either render nonsense or get silently overridden by inference. -BreakAxis(gap=...)validates at construction (non-finite, malformed-shape, and reversed pairs all refuse) AND at the Rust wire gate for a hand-builtchart_configdict (#92); theannotations[]/structural[]array-item key gate closes the one remaining carve-out in the chart-config wire validation (#148) — an unknown key inside an annotation or structural item now refuses by name instead of silently vanishing or slipping through. - An ordinal-domain scale that resolves to a sub-pixel bandwidth now warns (GroupCardinalityDegenerate, #183), and a mark builder that discovers it has nothing to draw now names why instead of rendering a silent blank panel (MarkBuildEmpty, #118) — at five sites:mark_segmentmissing x2/y2,mark_imagewith no source,mark_geoshapewith no geometry column at all,mark_rect's box body on a continuous axis, andmark_imageunderCoordPolar/CoordGeo. Legitimate empties (a zero-row input, a documented per-row skip, a facet panel empty after a filter) still render silently, by design. - The in-gap annotation-suppression warning now rolls up per axis instead of firing once per suppressed primitive (#240-3) — 4annotate_hline()calls (8 primitives) now warn once, not eight times. - A figure-level composite whose leaves structurally clone the same config mistake (e.g.Repeat/facet applying oneChartConfigoverride to every panel) now warns once instead of once per leaf (#140); a leaf's own data-condition warnings (a degrading transform, cardinality, an empty mark build) still fan out per leaf unchanged. -catplot(hue=fm.Color(...), hue_order=[...])now composes instead of raisingTypeErroron every kind (#190) —hue_order=wins over a channel's ownsort=, matching theorder=precedent; a channel object's ownsort=survives when nohue_order=is given. - An unknowncmap=/scheme=name now refuses at Python desugar (mark_raster,mark_hex,mark_contour,heatmap,clustermap,RenderConfig) and warns at the Rust continuous-scheme resolve site instead of silently falling back to Viridis with no diagnostic (#240-4a/4b). -BreakAxis(gap=...)bounds now accept temporal values —str(ISO-8601 date/datetime),datetime.date,datetime.datetime,numpy.datetime64, orpandas.Timestamp— coerced to epoch-milliseconds UTC at construction through the same conversion the encoding layer's TimeScale-domain coercion already uses (#230). A gap pairing a numeric bound with a temporal one, or carrying an unparseable string, refuses at construction naming the value; a temporal bound that lands outside a non-temporal axis's domain warnsBreakAxisIneffectiveat render time rather than refusing. The break-axes guide's temporal example, previously documented as unsupported, now renders. -numpy.datetime64is now accepted wherever ferrum accepts a temporal value in Python: ascale={"type": "time", "domain": [...]}domain element and an annotation coordinate (ann.text(x=np.datetime64(...)), everyannotate_*/ann.*coordinate) joinBreakAxis(gap=...), which accepted it already. Thedatetime64conversion moved out ofBreakAxis's own module intoferrum.annotation.coords.temporal_coord_to_epoch_ms, the one canonical Python-side temporal seam all three go through, so the claim that they apply "the same conversion" is now literally true rather than true for three of four types. Adatetime64domain element previously raisedTypeError, and adatetime64annotation coordinate reachedjson.dumpsand died with "Object of type datetime64 is not JSON serializable". One surface is deliberately not widened by this change and stays narrower: the Rust-backedferrum.TimeScale(domain=[...])constructor extracts its domain in Rust and still refusesnumpy.datetime64with its own accepted-formsTypeError. Spell that domain as a rawscale={"type": "time", "domain": [...]}dict, or convert topandas.Timestamp/datetime, until the Rust extractor is widened to match. -BreakAxis(gap=...)bounds now accept numpy numeric scalars (np.int64,np.int32,np.float32, ... — whatdf["v"].max()hands back) alongsideint/float. Onlynp.float64worked before, and only because it subclassesfloat; the encoding layer's domain coercion has always accepted all of them.boolandnp.bool_stay refused: a boolean is not a break region. -Theme(cull_labels=)separates "may labels be dropped" from "how much gap" (wave 6A, #146).cull_thresholdused to answer both with one integer, so0meant both "no gap" and "never cull", and "keep an 8 px gap but never drop a label" was unspellable. The new boolean key carries the permission alone:Theme(cull_threshold=30, cull_labels=False)holds every presentation stage to a 30 px gap and then keeps every label, landing flat or rotated depending on density. Every existing spelling keeps its meaning (cull_threshold=0is still gap 0 and never cull; a positive value still permits culling), and the default is unchanged (gap 8, culling permitted). Seeferrum-spec.md§3.13's 2026-09-20 note. -ferrum._core.mark_kwargs_fields()publishes everymark_stylekey (wave 6B close). It returnsMarkKwargsSpec's wire keys in declaration order, read from the struct's own serde field list, so Python code and tests can enumerate them without parsing Rust source. - A style field that draws only with another input warns when that input is missing (wave 7 close). Before: the field was accepted and drew nothing, silently. After: render warns once per layer, naming the field and the missing input, e.g.mark_bar(stroke_width=3)with nostroke=warnsmark_bar: stroke_width has no effect on this bar mark without a stroke color (stroke=) or a numeric stroke_width encoding (which stroke='none' turns off); it was ignored, andmark_segment(arrow_size=12)withoutarrow=Truewarnsmark_segment: arrow_size has no effect on this segment mark without arrow=True; it was ignored. A stroke field's enabling input differs per mark: a point also takes a hollow outline (filled=False) or a numericstroke_widthencoding, and an area also takes border lines (line=Trueorborders=True). The other enabling inputs are a quantitative color encoding (a polygon'scmap), raster data frommark_raster()(an image'scmap), aurlencoding (an image'swidth/height), a band axis paired with ay2/x2range (a rect'sband_size), both atextencoding and the heatmap shape, one cell per x/y band pair with nox2ory2range (a rect'sfont_size), and bothdxanddy(a label's offsets, since a label places itself unless both are set). A layered chart prefixeslayer {i}:, and a composite names itself (layer 3: mark_boxplot: font_size has no effect on this rect mark without both a text encoding and the heatmap shape (one cell per x/y band pair, no x2 or y2 range); it was ignored). The output is unchanged; set the input, or drop the field. -ferrum._core.mark_style_fields(mark)publishes which style fields each mark draws (wave 7 close). It returns each field the mark draws, mapped to the input it needs to show (Nonewhen it always shows), from the one Rust table every door now reads;ferrum._core.style_table_marks()lists the marks, andblend_accepted_values(),stroke_cap_accepted_values()andstroke_join_accepted_values()publish those vocabularies. - a line can declare that it rises from its value axis's zero baseline at each series' first observation - it declares a panel property instead of a placement (
Fixed¶
- Layers attached to an aggregated chart compute their own statistic.
fm.Chart(df).mark_bar().encode(x="g", y="mean(y)").layer(fm.Layer(mark="text", encoding={"text": fm.Text("y", aggregate="mean")}))labels each bar with its mean, where it raisedstat_aggregate: column 'y' not found, and an attached point layer with its owncolor=draws the mean per color. Each layer draws the number of marks it draws alone, whatever layers sit beside it. - Faceted charts draw layers over other data. A faceted chart with a
fm.Layer(data=)layer or a+operand over another frame dropped that layer's rows; the layer now repeats in every panel, with no false "null in its groupby key" warning. - Ranged bars and pies render from raw rows.
mark_bar().encode(y="g", x="min(v)", x2="max(v)")draws one bar pergfrom its minimum to its maximum,mark_arc().encode(theta="sum(z)", color="g")draws a pie, andradius="mean(z)"a radial chart.aggregate=works onx2,y2,theta,radius,theta2andradius2. - Labelled pies render.
mark_arc() + mark_text()andarc.layer(fm.Layer(mark="text"))underCoordPolarused to fail; withfm.Theta(..., stack=True)on the text, each label sits in its slice, halfway out by default or at itsradius. An unstacked label beside a pie warns how to place it. fm.Color("z", bin=True)draws a binned legend over unchanged rows. The same works onFillandStroke, withbin={"bin_count": 3}or afm.Binfor the bin settings. The bins are cut from the values of every layer that draws the color, statistics that group by color group by bin, a line or ribbon draws one series per bin, and an area one band per bin.- A bin beside two aggregates computes both.
mark_bar().encode(x=fm.X("v", bin=True), y="mean(y)", color=fm.Color("z", aggregate="mean"))draws one bar per bin colored by its meanz; it was refused. fm.Layer(encoding=)reads strings likeencode().{"y": "sum(y)"}aggregates and{"y": "r:Q"}bindsras a number, where both were read as column names; a plain string oncolor,shapeorstroke_dashis drawn with its legend, where it drew one color with no legend.size,stroke_widthand the opacity channels acceptfm.SqrtScale,fm.PowScaleandfm.LogScale. At 0.23.0 a non-Linearscale onsizemapped linearly and was silently ignored, so the power-scaled bubble recipe'sfm.SqrtScale(...)drew the same linear-area bubbles afm.LinearScale()would have; these scales now compute as written, and the recipe's bubble areas grow with the square root of the value.reverse=and an explicit domain now apply on these channels too.SecondaryYover a histogram or a smooth renders.mark_histogram().encode(x="v") + fm.SecondaryY("r", mark="bar")draws its bars from zero on a right axis,mark_smooth(...) + fm.SecondaryY("r")renders with or withoutci=, and+ fm.SecondaryY("count")is refused with a message saying how to compute the count.- Two composite charts compose whatever their internal names.
mark_boxplot() + mark_violin()andmark_qq() + mark_qq()were refused because their internal steps shared a name; both now draw. - A chart with nothing left to draw says so, whether a filter emptied it or its data started with zero rows. The chart draws its frame and axes and warns
the chart has no rows to draw after its transforms; its panel is drawn empty(a faceted chart draws no panel and warns... no facet panel is drawn), on a plainChart,+,.layer()andfm.LayerChartstatic and interactive, where a filter-emptied chart used to render blank in silence and a chart whose data started with zero rows rendered a placeholder comment with no warning at all. Anfm.LayerChartoverlay in which every member has zero rows now draws instead of raising, and warns once for the whole overlay rather than once per member. A grid composition (hconcat,vconcat,concat,repeat,pairplot, a joint plot or a clustermap) whose every child has zero rows still raises, unchanged. - A data-aware sort reads a chart's own rows on every route, not only a layered chart's axis.
fm.X("g", sort={"field": "y", "op": "mean"})besidey="mean(y)"now orders by each category's mean ofyon a plain chart, a facet panel, a composite leaf and thecolor/shape/stroke_dashlegends, where those five warned and fell back to insertion order;op="count"now counts observations instead of sometimes counting aggregated groups. - A stacked, dodged or jittered mark's tooltip, label, color and key read the row's own value. Before, a stacked
mark_text's label, a tooltip or a color bound to the stacked field read the cumulative stack top instead of that row's value, a null row's label read0instead of nothing, and akey=on the adjusted field re-keyed a mark whenever a sibling's height changed. Every one of them now reads the same value afm.Dodge()twin would. - An explicit axis title follows its channel under
CoordFlip. A flipped chart used to draw the title twice or on the wrong axis. - Grouped boxen and QQ plots drop rows with a null group, with a warning, and grouped logistic and GLM fits skip a group they cannot fit.
fm.LetterValue,fm.QQ,fm.Logisticandfm.Glmtakegroupby=. - Hover tooltips on layered charts. Each layer's tooltip shows the fields that layer draws, and a selection's fields are added to every layer whose rows have them.
- Stacked axes reach the top of the stack. A label placed on stacked bars, and stacked bars composed with other marks, used to cut segments off the axis; every route now spans the full stack.
- A reference rule added with
+keeps its own look.fm.Chart(df).mark_point().encode(x="x", y="y", color="class") + fm.Chart(df).mark_rule().encode(y="ref")used to draw the rule once per class, in the class colors, dashes and widths. It now draws one gray dashed rule in its own style, and the scatter keeps its class legend. To color both, bind the color on the composition:(scatter + rule).encode(color="class"). - A histogram, density, smooth or function line keeps what you wrote on its axis.
mark_histogram,mark_density,mark_smoothandmark_functionpointxoryat the values they compute, and doing so used to drop everything you wrote on that channel except the field name. A title, an axis title, a number format and a scale you wrote are now kept, in either orientation and whatever order you call.encode()in. Charts where you wrote no title still show the field name. - Each chart in
a + bkeeps its own transforms. A chart with its own.transform(...)steps, a density or histogram, or a per-layer statistic used to run on the other chart's rows when composed with+, or fail. Each now draws what it draws alone, asfm.LayerChart(a, b)draws it: a density plus a rug draws one tick per data row, two densities with different bandwidths draw two different curves, a filtered chart beside an unfiltered one keeps every row of the unfiltered one, and the combination also works withfm.SecondaryY, facets,resolve={"y": "independent"}and.interactive(). Charts over two different frames whose column names overlap compose too. - A polars LazyFrame renders, and a file path is refused clearly.
fm.Chart(df.lazy())failed at render withhas no len(); it now draws exactly what the collected frame draws, on every route, and is collected once per render. A file path (strorpathlib.Path) passed as data is refused withTypeError: Unsupported data type: ...on every route, includingfm.Chart(path).layer(fm.Layer(data=df)), which used to draw the layer's data and ignore the path. pandas and pyarrow data now read exactly as polars data does: an annotation placed at a category lands on that category, and a layered interactive chart with shared scales renders. - A later
configure_paddingcall no longer turnspadding.autooff (#135). EveryPaddingConfigused to putauto: falseon the wire, even one that only set a side, soconfigure_padding(auto=True).configure_padding(left=5)merged to{"auto": False, "left": 5.0}. It now merges to{"auto": True, "left": 5.0}, and a composite parent'sauto=Truereaches a leaf that sets its own sides.PaddingConfig().to_dict()is{}(was{"auto": False}). - A dual-axis chart slot-tags its primary y axis wherever it sits. On a chart with a secondary y axis (an independent-y layer or
SecondaryY), every y axis on the panel carries itsy_slottag, slot 0 for the primary. Before: with.configure(axis_y=fm.AxisConfig(orient="right"))the primary y axis was left untagged, so the panel's slot tags were["1"], breaking the rule that every y axis on a multi-slot panel is tagged. After: the tags are["0", "1"], and the static SVG wraps that primary axis in<g y_slot="0">. Nothing moves on screen, and charts with one y axis are unchanged. .override(width=None)and.override(height=None)are no override. Before: they failed at render withTypeError: float() argument must be a string or a real number, not 'NoneType'. After: the chart's own size stands, and the render is byte-identical to the chart without the override.- A
Nonescale override is no override, on every scale leaf (#157)..override(x_scale_domain=None)over a chart's ownLinearScale(domain=[0, 10])erased that domain; the chart's own value now stands, and.override(x_scale_domain=[0, 5]).override(x_scale_domain=None)renders the chart's own[0, 10]..override(x_scale_padding=None)raised aValueErrorand is now a no-op too. - A malformed scale override value is refused naming the path you wrote (#157). A malformed
TimeScaledomain element refuses asChart.override(x_scale_domain=...) Cannot parse TimeScale domain value 'garbage' ...instead of with an unnamedValueError, and an unencodable value no longer escapes as a rawTypeError. - A malformed
scale=dict on aCoordFlipchart is refused naming the channel you wrote. UnderCoordFlip(),X("g", scale={"type": "band", "padding": 5})was refused asband scale on y: padding must be a number in [0, 1]; received 5, naming the axis the flip draws it on; it now readsband scale on x: ....Y("b", scale={"type": "linear", "domain": [5.0]})was refused asx axis scale-domain config: domain must have length 2; got 1, the wrong channel in theconfigure_axiswording; it now readsy scale: domain must have length 2; got 1. Aconfigure(axis_y=...)domain refusal still names the physical axis it configures. mark_function(**mark_kwargs)style kwargs work (wave 7 close).stroke_width=,opacity=,color=(the line's stroke) andsize=(a dot-diameter width) reach the function's line, validated like any composite mark's kwargs. Before, every kwarg raised a rawTypeErrornaming an internal helper.- A composite's
size=sizes only the marks that draw it (wave 7 close, #116).mark_smooth(size=40)sizes its fit line and no longer puts a size on its confidence band, which render now refuses on a non-drawing mark. - A swarm that overflows its category slot warns (wave 7 close, #161). When packed dots reach past half their category's slot on an ordinal axis, one warning per swarm names the entry, the reach and the half-slot, and says to shrink the dots or spacing or widen the chart; the dots stay where they were packed.
- A point is not resized by a line's own size conditional, and an
hconcatno longer warns falsely aboutaxis_y2(wave 7 close). A size conditional declared on one line restyles that line alone in the interactive view; anaxis_y2override applied by one leaf of anhconcatno longer warns for its sibling. - A tapered line's one-vertex piece draws nothing (wave 7 close, #116). As a one-point SVG stroke does; before, both backends drew an axis-aligned dot. No chart drawn through
mark_linereaches it. - A layer's own
color,size,shapeorstroke_dashbinding draws and titles its legend (wave 7 close). A legend now reads its binding from the first layer's resolved encoding, the binding its scale is built from, on the flat, overlay and shared-band routes. Before: a channel bound only on a composite's or layered chart's first layer drew an untitled legend (color) or no legend at all (size,shape,stroke_dash), though its scale was built. A layer-0Color(legend=...)now styles or suppresses the legend. Seeferrum-spec.md's 2026-10-04 notes. roc_chart,pr_chart,heatmapandclustermaplegends no longer name an internal column (wave 7 close round 4d).roc_chart/pr_charttitle their per-class legend"Class", or"Model"undercompare=, viamark_roc/mark_pr's owncolor_field=passed a titledColor(...)rather than a chart-level encode — a chart-level color would have been inherited bymark_roc's untitled diagonal reference layer and painted it per class.mark_roc/mark_pr'scolor_field=now also accepts a channel, not just a field name.heatmap/clustermaptitle their cell-color legend with the data's own single value column when the input has exactly one, and"Value"otherwise, in place of the internal unpivot column name"value".heatmapandclustermapcarry a chart title and titled axes by default, and aclustermapcolorbar is no longer clipped (wave 7 close). The default title is"Heatmap"/"Clustermap", replaced byproperties={"title": ...}and suppressed bytitle=""; the column axis reads"Column"(was the internal"column"onheatmapand untitled onclustermap) and the row axis reads the id column's name, or"Row"when the input has none (was the internal"_row_id"onheatmap).clustermapsized its dendrograms against a stale 600x400 heatmap default while the heatmap rendered at the real 640x480 default, so the heatmap cell was ratio-scaled to fit and its colorbar, which a ratio cell translates but does not scale, ran past the right canvas edge and cut its tick labels to"1.","0.","-0". Dendrograms now size againstferrum.config'swidth/height, the heatmap renders unscaled, and every default-sizeclustermapchanges geometry (canvas 760x510 becomes 810x610).clustermapdendrogram leaves sit on the rows and columns they name, and the heatmap's columns follow the column clustering (wave 7 close). Three defects drew a tree the heatmap did not show. The leaf axis of each dendrogram was an auto-domain scale over[0, n-1]with a padding inset while the heatmap places cellkat a band centre, so only the middle leaf of an odd count landed on its cell (theclustermap_basiccolumn leaves were off by -53.5px to +176.5px); each leaf axis is nowLinearScale(domain=[-0.5, n-0.5]), the band scale's continuous image, and every leaf sits on its cell centre. The row dendrogram ran bottom-up underCoordFlipwhile the heatmap's rows run top-down, so it mirrored the rows, and its leaves pointed away from the heatmap; its leaf axis and distance axis are now reversed, so leaf 0 sits beside the top row and the leaves face the heatmap as the column tree's do. The heatmap's columns were never reordered (the column linkage ran and its order was discarded), so the column tree described an order the heatmap did not draw; the center chain now permutes the value columns by the column linkage'sorderthroughReorder(axis="columns")beforeUnpivot(value_vars=None), and the heatmap's columns read in the column tree's leaf order. Everyclustermapchanges: columns reorder, the row tree flips, and both trees' leaves move onto cell centres. Theclustermap_basicandclustermap_row_col_dendrogramsgoldens were regenerated and inspected against their prior renders.intercluster_distance_chart's cluster-id labels draw at the text mark's own size, above their bubble (wave 7 close). Before: the figure's chart-levelsize=binding reached the label layer, so each cluster id drew at a font size of 55 to 74 px driven by the cluster-size scale, centred on its own bubble. After: each label draws at the text mark's own size (the theme's 11 px by default), raised by a constantdy = -(sqrt(max_size / pi) + 6)px, which clears the largest bubble the size range allows with a 6 px gap;min_size/max_sizestill size the bubbles. Figures title a legend on the binding their marks chose, never through a chart-level binding, so a figure's legend title no longer reaches its other layers.- A
blend=style draws on every mark, in static and interactive output (wave 7 close). Before:blend=was accepted by every mark method but reached the renderer only frommark_raster;mark_point(blend="additive")and every other mark rendered as if it were absent, and evenmark_raster(blend="additive")blended only in static SVG, since the interactive view ignored blend on images, lines, areas, polygons and text. After:blendis a mark style field every mark draws, at every door (mark_*(),fm.Layer,.override, a figure'smark=,layer_kwargs=). Static SVG wraps each blended batch, text and labels included, in its ownmix-blend-mode:screengroup (SVG's closest mode to additive); the interactive view adds each mark's color, scaled by its opacity, and draws blended text and labels in a screen-blended overlay that Save PNG composites the same way. Within one blended batch, interactive adds mark over mark while static SVG composites the batch as one group and then screens it over what is beneath. Ina + b, only the layer that setblendblends."alpha"stays accepted as the older name of"normal", the default, and a chart with noblendrenders byte-identically. -
A swarm packs at the largest dot it draws, so no drawn dot overlaps (wave 7 close). Before: a swarm placed its dots at its own
sizewhatever size the point layer drew, socatplot(kind="swarm", mark={"point": {"size": 40}})drew radius 3.57 px dots with centres as close as 5 px (the defaultsize=4plusspacing=1), overlapping with no overflow warning;mark_swarm(layer_kwargs={"point": {"size": 40}}),fm.Layer, a hand-builtfm.Swarmplusmark_point(size=40)and asizeencoding did the same. After: the packing diameter, used for placement and for the overflow warning, is the largest bound over every point layer the swarm feeds anywhere in the chart: a size encoding's range-maximum diameter (wider still when some row's size is null or unmapped and the fallback dot is wider), a constantsize=a's2·sqrt(a/π), else the swarm's ownsize(point_sizeonfm.Swarm). Thesize=40case now packs centres at least 8.14 px apart (7.14 + 1), and a default-range size encoding at least 7.77 px. Each layer still draws at its own size, every facet panel packs at the same diameter, and a default swarm is byte-identical. -
.override(<channel>_scale_*=...)reaches every layer (#159(10)). Onmark_boxplot,mark_violin,mark_errorbar,mark_boxenand the catplot box/violin kinds, a scale override such as.override(y_scale_domain=[0, 100])was silently dropped because each layer carried its own copy of the channel's scale; it is now merged into every layer that declares the channel, including a channel only a layer declares, so every composition renders it exactly as the channel's ownscale=would. Flat charts are byte-identical, except an unlayered mark that pairsywithy2(orxwithx2) under a caller-written scale stating nodomain, whose axis now spans the paired column too:mark_bar().encode(x="g", y=fm.Y("v", scale={"reverse": True}), y2="w")withv = [1, 2],w = [30, 40]resolved its y domain fromvalone,(2, 1), leaving everyy2endpoint off the axis, and now resolves(40, 1). A refused override refuses with the scale gate's text on every path; on a channel only a layer declares that refusal is new (the override used to be accepted and ignored there). On a layered chart, every layer whose encoding carries an equal copy of a caller-written scale that states nodomainnow spans the axis together, plus theiry2, and a sibling that declares no scale at all on the channel resolves on that axis and joins the same way, whichever layer carries the scale: the first caller-written scale in layer order establishes the axis, onfm.layerand+alike; a sibling that carries a genuinely different scale, or one that states adomain, stays out (before, such a scale read one bound column only). Under a caller scale that states adomain, a scale-less sibling now resolves on that stated axis onfm.layertoo, as+already did:fm.layer(mark_bar().encode(y=fm.Y("v", scale={"domain": [0, 100]})), mark_point().encode(y="w"))withw = [40, 60, 80]drew the points over their own extent across the full panel height and now draws them at 40, 60 and 80 on the 0 to 100 axis. On+, when the first layer declares no scale, the axis follows the first layer that wrote one instead of pooling every later scale:Chart(...).encode(y="s") + Chart(...).encode(y=fm.Y("c", scale={"padding": 0.2})) + Chart(...).encode(y=fm.Y("d", scale={"padding": 0.6}))withs = [10, 20, 30],c = [1, 2, 3],d = [50, 60, 70]drew y ticks 5 to 70 and now draws 2 to 30, the same asfm.layer. A layer whose column cannot sit on the continuous axis a caller scale establishes now refuses on+in every such shape, including under a scale that states adomainand for a string layer that carries its own categorical scale (mark_point().encode(y=fm.Y("v", scale={"domain": [0, 10]})) + mark_point().encode(y="label")with a stringlabelrendered with the second layer's marks silently absent, and now refuses with the shared-axis textfm.layeralready used). Two route differences remain and are pinned as follow-ups rather than changed: a layer that stays out of the establishing scale draws on its own unlabelled scale onfm.layerbut is clipped away on+, and both routes now say so with one typed render warning,layer 2: its y scale differs from the one layer 0 establishes the y axis with, so it stays out of that axis; its marks are placed on that axis and may fall outside iton+and... its marks draw on the layer's own scale, not the labelled axisonfm.layer(wire typelayer_scale_excluded), emitted once per layer and channel and never for the establishing layer, a scale-less layer, an equal copy, or a secondary-y layer; when layer 0 binds a categorical column on the channel (a string column, or one typed:N/:O), layer 0's categorical axis owns it and a later layer's continuous caller scale, including one a per-layerCoordFlipmoves there, is left out with that warning:Chart(...).encode(x="cat") + Chart(...).encode(x=fm.X("n", scale=fm.LinearScale()))refused with the shared-axis text naming layer 0 and now renders on thecatband axis with the warning (user ruling 2026-10-01), and a numeric layer 0 typed:Nnow gets that categorical axis instead of joining the later scale; and a later layer whose per-layerCoordFliplands its string column on layer 0's continuous axis now refuses on staticfm.layeras it already did on+and.interactive()(user ruling 2026-10-01), wherefm.layer(...).to_svg()used to draw it against an unlabelled categorical scale with no warning; the mirror, a flip on layer 0 beside a later layer with no coord of its own whose column cannot sit on the axis it lands on, refuses on staticfm.layertoo, namingfm.CoordCartesianas+already did; and the bar's injected zero anchor reaches the chart-level scale copy only, so areversebar scale beside a scale-less point spans 0 to 80 onfm.layerand 10 to 80 on+. This reaches composite marks with their ownscale=(mark_boxplot,mark_errorbar,mark_boxen,catplot(kind="box")now cover their data),regplot/lmplotwith a yscale=(now propagated to their band, line and metrics layers), layered charts built with+orChart.layerwhose layers carry equal caller scales or no scale at all, and.override(...), which copies the scale onto every layer. Example:mark_point().encode(y=fm.Y("v", scale={"reverse": True})) + mark_line().encode(y=fm.Y("w", scale={"reverse": True}))withv = [1, 2, 3],w = [30, 40, 50]drew y ticks 1 to 3 and now draws 5 to 50. A domain-less caller scale over an all-null column, flat or layered, resolved an infinite domain for a float column, or integer seeds of about ±9.2e18 for an integer column. It now resolves the(0, 1)fallback the auto path already used. - Breaking:
Layer(transforms=...)is refused instead of silently ignored (#176(8)). The list was accepted and serialized onto the layer, and no renderer ever read it, soLayer(transforms=[fm.transform_filter(...)])drew every row. A non-empty value now raisesValueErrorat construction reading"Layer(transforms=[...]): a layer does not run its own transforms. Give the layer its own chart with .transform(...) and compose it with +, which routes the transform to that layer alone.", and a hand-builtChartSpeccarrying a non-emptylayers[i].transformsraises the render-side form of the same text at render, naming layeri. An empty list or omission is unchanged. To transform one layer's rows, give that layer its own chart with.transform(...)and compose it with+. - Breaking: the type you declared is the type that bands (#171). A
mark_boxplot,mark_violin,mark_errorbarormark_boxenwhose category column carried an integer, unsigned, float or boolean dtype resolved to a quantitative scale, so its tick layer landed in the quantitative fallthrough and drew 8px stubs where band geometry belonged — measured on a 3-categoryInt64column, three box rects dropped entirely and the axis grew from 3 category ticks to 9 quantitative ones. Writingx="cyl:N"did not rescue it, and neither didcatplot's documented force-nominal default, because the declaration never survived long enough to be read: the composite desugar reduced both positional channels to bare field-name strings before any desugar ran, and six desugar sites then rebuilt the categorical channel untyped. The declared type now travels through the desugar, and where the caller declares nothing the five category-axis composite marks default that channel nominal.mark_errorbandstays untyped, because itsxis a genuine value axis, andmark_tickis deliberately untouched — it is a primitive, not a composite desugar, so it bands when its channel is declared nominal at any dtype and stubs as a true rug when the channel is an undeclared numeric.catplot(native_scale=True)is the negative control and stays quantitative: a blanket force-nominal implementation fails it. - Breaking:
stat_letter_valuetakes the group dtypes its siblings already took (#185). The issue reported that it rejectedUtf8group columns; it was inverted.Utf8andCategoricalwere the only dtypes it accepted, and it refused every integer, unsigned, float and boolean that every sibling transform takes, somark_boxenon anInt64category column raised outright where boxplot, violin and errorbar all rendered.letter_valuewas the last transform still carrying its own private group-key representation and its own hand-rolled dtype gate, years after the sharedgroup_key/toolkit was created so that int/uint/bool support "exists once and cannot drift". Both private copies are retired rather than supplemented, routing through the same validator and partitionerbox_statsuses, and the group column comes back in its original dtype rather than stringified. Routing through the shared partitioner surfaced a second defect: groups whose values are entirely null survived into the sort, where aNaNaggregate degrades the comparator toEqualagainst everything — measured, asort=median, Descrequest came back ascending. Empty groups are now skipped.mark_boxenon a numeric category column needed both this and #171: #171 alone left it raising, #185 alone left it drawing stubs with no boxes. Archaeology row NS-2 closes with it. - Breaking: one answer to which dtypes a position adjustment can handle (#184). Three adjustments in one module held three opinions about which columns they could read, so the same frame behaved differently depending on which adjustment it met. On the value column,
DodgeandJittergated on the Arrow dtype rather than on the resolved scale kind, so aFloat32,UInt8,UInt16,UInt32orTimestampmeasure was refused where aFloat64was accepted; all three now retype through one helper and the eleven dtypes the crate's numeric reader accepts agree acrossStack,DodgeandJitter, asserted by a test that loops the matrix through all three rather than sampling one cell. On the category column,Stackcarried a second, separate gate taking onlyFloat64/Utf8, somark_bar(position=Stack()).encode(x="<Int64 column>:N", y=..., color=...)refused while the identical column dodged, jittered and banded fine. That bespoke chain is deleted; the category column now keys through the same ordinal-category reader the band ladder is enumerated with, falling back to the temporal epoch reader, so two rows share a stack bin if and only if they share a band wherever a band ladder exists. Neither hole is a regression introduced by #171: the refusal was measured byte-identical with and without it, by reverting the desugar and re-probing. A temporal column declared ordinal still refuses, from a different site (the band ladder cannot enumerateTimestamp); that refusal is pinned rather than deleted, and filed separately. - Breaking:
nice=Trueon a typed scale class does what the same key does in a raw dict (#153).LinearScale(nice=True),TimeScale(nice=True)and theirLogScale/SymlogScalesiblings accepted the kwarg and always serializednice: false, so a chart written with the typed class rendered un-niced ticks while the identical chart written as{"type": "linear", "nice": true}rendered niced ones. Measured on the same data: ticks1..9against0..10, and a first time tick of2024-01-04against2023-12-28. The gap was exactly the data-derived domain, where nicing is deferred to render and the flag had nowhere to live — the structs had nonicefield, so the value was discarded at construction and the wire conversion hardcodedfalse. All four classes now retain and emit it; no new wire key was needed, sincenicealready exists onScaleSpecand only the class path had to reach it. The explicit-domain case was never broken (those classes nice eagerly at construction) and stays byte-stable.TimeScale's own docstring has promised this behavior all along and was simply false; it is left untouched because the fix makes it true. - Breaking: the sort you wrote is the sort that applies (#95).
sort="-y"ordered a bar chart's categories correctly until.coord(fm.CoordFlip())was added, at which point it aggregated the category column, warned twice, and fell back to insertion order — and the spelling that worked under flip wassort="-x", for a value the caller had put ony, which nobody would write. The channel token in a sort shorthand is the caller's own text in authored space, while the fields it was matched against were built from the post-flip rendering encoding; the two sides of one lookup lived in different coordinate spaces. It now resolves in authored space through the same involution the crate already established for user-facing channel tokens, rather than a second flip mapping — the crate has exactly one flip expression, and #113 reinforced that rule three commits earlier. Thesort=fm.SortField(...)object form names a field rather than a channel and was therefore already flip-invariant, so the two forms agreed before the flip and disagreed after it; they now agree throughout, which is what the shorthand being sugar for the object form is supposed to mean. The same two-spaces defect sat in theshape,stroke_dashandcolorcategorical domains, which build their sort the same way, and is fixed with it. Also closed: an ignored sort spec was reported once by the provisional placeholder pass and again by the panel-real pass, and now warns once — stripped only after a panel has actually resolved, not by the cheaper placeholder filter, which was measured to drop the warning to zero for a chart whose data is empty after transforms. - Breaking: a flipped chart's marks and its axis agree again (#113). Under
CoordFlip, scene construction merged the authored chart-level encoding with the post-flip layer-0 encoding, and since the overlay only overwrites channels the overlay itself has, a channel the flip had already moved (y2→x2) left the overlay'sy2empty and the pre-flipy2survived alongside the post-flipy, widening the wrong axis. Measured on a flippedmark_barwith a chart-levely2: the marks were placed on a y scale spanning roughly0..72.9while the axis ticks in the same SVG read0..3— a 23-fold divergence inside one file. The chart preparation path never had this bug, because it builds its rendering spec by replacing the encoding wholesale, which is why the ticks were right and only the marks were wrong; the two sites disagreeing was the defect. The base encoding is now flipped before it is overlaid, the convention the domain union and the layer fallback already follow, so no second flip mapping enters the crate. The overlay itself stays, because a layer-0 with its owndata_sourceinherits only non-positional channels and the overlay is what recovers itsx/y. Guarded on the flip, so every unflipped chart is byte-identical. - Breaking: a series closes its fill on its own baseline, and a flipped ribbon draws (#172(2), #172(3)). Two mark drawers hard-coded a y-axis idiom that
CoordFlipinvalidates. ACoordFlip'dmark_areatraced its vertices correctly and then closed the filled region on the panel bottom — byte-for-byte the closure an unflipped chart emits — so the filled region came out very nearly the complement of the correct one; the same hard-code is reached with no flip at all bymark_density(orientation="horizontal"), whose near-zero tails degenerate the spurious region to a sliver, which is how the defect came to sit latent inside a blessed golden. Separately, aCoordFlip'dmark_ribbonrendered nothing, silently: the flip had moved the authoredy2intox2and the drawer read onlyy2, somark_errorband,mark_smooth(ci=), the learning and validation curves and the QQ CI region all went band-less with it. The band's curve axis is now a function of the channel actually read, and the value axis is declared rather than inferred. The three signals compose by precedence, not disjunction: a declaration is a statement about the rendered series and travels with the channels through the flip, so it answers outright, whileCoordFlipand the stack stamp describe a transformation of a series that was vertical by default and speak only in its absence. As a disjunction, a producer-horizontal density underCoordFlipstayed "horizontal" on the flip's word alone and closed 2.9px of sliver at the left edge — the two flips must cancel.mark_ribbonjoins the coord-flip test matrix, whose absence is why this survived. - Breaking: a swatch shows the encoding it stands for (#111). When
stroke_dashorshapeshares its field withcolor, the aux legend block is suppressed so the reader sees one legend instead of two — and the surviving color legend then drew three identical solid circles over marks that were solid,6,3and2,3, or over marks that were circle, square and cross, making the mapping the legend exists to explain unreadable. The surviving entries now carry the suppressed channel's identity. The issue's own prescription (thread the dash pattern into the color entries) was measured to be a no-op, because the color swatch is a hard-coded circle and the pattern is only read inside the line arm, so the swatch kind had to change; shape needed only the thread, since the renderer already reads the shape name ahead of the symbol-kind match. Identities are matched to color entries by label, never by index, because both domains are built over the same field with independent sort specs and index pairing silently transposes undersort="descending"— a reorderedconfigure_color(domain=)exposed the same class one layer down, where the resync had to clone a surviving category's entry rather than rebuild it from label and symbol, since the line symbol survives a rebuild while the pattern does not. Three adjacent behaviors settle with it: a suppressed channel's explicittitle=is no longer silently discarded (and a genuine two-title disagreement warns);color=fm.Color(..., legend=None)with a same-field dash no longer erases both blocks, since with no color legend there is nothing to duplicate — that gate now asks whether the color legend enumerates the field rather than whether its scale is categorical, so a colorbar plus a categorical shape or dash renders the aux block too; and a chart bindingcolor,shapeand dash to one field shows the shape, because the glyphs are painted fill-only and a dash array on them paints nothing, with the losing pattern no longer written onto the entry at all and the drop warned. - Breaking: a gutter is reserved only for chrome that is drawn (#182, closing #94). Layout reserved margins for chrome it never drew: hiding an axis kept the axis title's gutter, and a polar chart — which has no Cartesian axes to hide at all — reserved Cartesian margins regardless, so the plot area came out smaller than the drawn chrome justified and the chart sat off-centre in its own frame. Measured before the fix,
.axis(show=False)reserved a 23.729px phantom title gutter per side plus a 14.046px phantom label band on the y side, and a polar chart reserved 23.214px left and 43.039px bottom. The gate now asks whether the axis actually draws, which is what the sibling label-band check three lines away already did, so.axis(show=False)on a 640x480 chart with 16px padding collapses to exactly(16, 16, 608, 448),fm.Axis(labels=False)collapses the label band alone, and polar reserves nothing Cartesian. Scoping the gate to theshowflags would have closed #182 and left #94 open, which is why it reads "is it drawn".plots/matrix.py's clustermap dendrogramtitle=""workaround — which existed only to reach the title-width route so a hidden axis's phantom gutter stopped eating the dendrogram's share ofdendrogram_ratio— is removed rather than left beside the rule that replaces it. - Breaking: a composite's satellite panels align with the panel they annotate (#182 follow-on). Removing the phantom gutter exposed a real defect it had been masking: a
jointplotmarginal and aclustermapdendrogram are each their own leaf, laid out independently and fitted into a slot, so their plot rects and the centre panel's had no reason to agree — they looked aligned because the phantom inset them by roughly the centre's axis band. Measured post-#182, thejointplot_kde_histtop marginal spanned x53.377..624.0against the joint panel's67.423..547.025, and theclustermap_basiccolumn dendrogram spanned176.0..744.0against the heatmap's213.4..674.8, 37px past it on the left and 69px on the right, its leaves landing between the columns and its last drop over the colorbar. It was caught by comparing the regenerated golden against its pre-fix rasterization rather than judging the new render alone, which read as correct in isolation. A panel that annotates another now spans exactly that panel's extent on the axis the two share and keeps its own on the other, imposed through the same seam the #89A overlay pre-pass uses, at the same single point in layout. Clustermap gets the fix too, rather than being excluded to avoid re-blessing goldens: worst leaf-over-column error drops 123px to 50px. Two details are load-bearing: the imposed extent is scaled by the follower's native size over the leader's, because the grid planner ratio-fits each cell, and chrome is now told apart from blank padding, which is what lets the row dendrogram (landing 2.67px inside its own 16px padding) align at all. Named as pre-existing and not fixed here: a dendrogram's own x scale places its leaves at the extremes of its plot rect (≈1.7% and 98.3%) while the heatmap places its columns at band centres (12.5% and 87.5%), so leaf-over-column is closer but not exact. That is the dendrogram chart's scale, not the panel's extent, and it is filed rather than papered over. - Breaking: a scale ferrum wrote is not a scale the caller wrote (#247A). A bar chart's value scale is injected by ferrum itself to anchor the axis at zero, and that injected scale was indistinguishable from one the caller wrote — a caller-written scale rightly short-circuits the cross-mark domain union, so a bar overlaid with another mark bypassed the union and drew its bars against a domain its own axis did not describe. The injection now marks its authorship, and the resolver's auto-zero-anchor gate reaches layered specs through
spec.layersrather than reading any present scale as the caller's word; a scale the caller wrote keeps the flag withheld, so it still wins. The zero-widening arithmetic's third hand-copy folds into the shared helper the new gate's anchor flows into, and a comment claiming to mirror a block that had itself become a call to that helper is deleted. See Breaking for exactly which four shapes move, measured over a 25-shape hash corpus. - Breaking: a band exists only if something is drawn in it (#247B). A layered chart built from two DataFrames grew a
nullband on its ordinal axis that no mark ever occupied — the merge's diagonal concat pads each frame's columns over the other frame's rows, and those manufactured nulls reached categorical domain resolution as if the caller had supplied them, so every real band was narrower for it and the axis described a category the chart did not draw. The rule is now stated positively: a null in a positional ordinal column claims the null-category band only when some null-category row carries a non-null value on the opposite positional channel. Nullness only — a non-finite paired value (NaN/±inf) counts as occupancy, because the marks still resolve it to a pixel rather than skip the row. The standing policy that a genuine null category carrying a real value gets its own band is intact and pinned in both directions, so a null group and a real0/false/""group remain two categories (FA-9); null-free columns are byte-identical. The fix is not scoped to the merge, where the design doc first placed it: a single unmerged chart overcat=["a","b","c",None], val=[1.0,2.0,3.0,None]renders the same phantom band and draws three marks, so a merge-scoped fix was provably incomplete — and no merge-side data-shape change could be complete either, since a merged batch must be at least as tall as its taller frame, so with unequal heights the shorter frame's columns necessarily carry entries its data never supplied and all three candidate fill values are wrong. Two claims the briefs carried were measured false rather than implemented and are recorded so they are not repeated: the opposite positional channel is not thex2/y2span partner (wiring the rule there would have made the fix silently inert, sincex2isNoneon essentially every chart), and the stack adjustment does not consume this enumeration at runtime, so the axis ladder and the stack ladder cannot drift here — the stale invariant comment claiming they were one partition is rewritten rather than left standing. - Breaking: the shared ordinal axis covers every layer's categories (added mid-wave by user ruling).
Chart({cat: [a, b, c]}) + Chart({cat: [x, y, z]})drew three marks for six rows. A layered chart's ordinal axis read its categories off the chart-level column alone and never unioned its layers', so the second layer's marks were dropped for want of a band and its categories never even reached the axis labels; the numeric domain has had a cross-layer union for exactly this since before the wave, so the invariant "the shared axis covers every layer's extent" was half implemented. Every category any layer's positional column carries now gets a band, ordered by first appearance in layer order — not a new semantic, but the existing within-layer first-appearance rule carried across the layer boundary rather than replaced by sorting. Ordering and scope were a user ruling, taken because the choice sets every band position and is visible in every render. #247B's null rule is preserved exactly, including its twelve tests, which are unedited; one sub-rule is new and deliberately narrower than a naive extension, in that per layer the null band is judged against the positional field that layer itself binds and a layer binding none drops the null category — carrying #247B's "no opposite channel bound → keep the band" arm across the layer boundary instead would keep a band for an injected reference-line column and draw four rule lines where one is correct. Deliberately unchanged: the explicit-scale ordinal path still does not union layers, because the explicit numeric path has the identical property and fixing one side alone would break that symmetry. Removing #247B's phantom band removed the only visible hint of this defect, which is why the two shipped together: the marks were already lost, but the after-state was a clean, plausible three-category chart silently holding half its data. - Breaking: the canonical spelling stops being the poor relation of its own alias (#124). See Added for the widening, and Breaking for
fm.SelectionMark's new refusal and the decision this reverses. One divergence found on the way is closed with it: the annotation constructors' mark kwargs and theirAnnotationLineprimitive each derived their own dash representation from the raw parameter, so an overlay could disagree with the mark it annotates; both now derive from a single capture. - Breaking: a channel's
title=is now the title its legend prints (#90).title=onColor/Size/Shape/StrokeDashwas honored on axes and discarded by every legend builder, which read the field name directly — sofm.Color("species", type="N", title="Species")produced a legend headedspecies. One resolver now serves the swatch legend, both colorbars, the conditional legend, the facet band and every auxiliary block, with legend-title suppression spelled the way axes already spell it. The field name is still the default when notitle=is given. - Breaking: an untyped
Coloronhue=is treated as a discriminator, not a gradient (#130). The figure-level helpers decided categorical-vs-continuous by asking whether the caller passed a bare string or a channel object, sohue="species"andhue=fm.Color("species")read the same column two different ways — the typed object fell through to a continuous color scale. The helper now asks whether the caller stated a type.fm.Color("v", type="Q")still gets its gradient. - Breaking:
pr_chart(iso_lines=True)'s reference curves render in the grey they declare (#121). The iso-line layer bound its grouping key_iso_fto thecolorchannel, but the chart's color scale is keyed onclass, so every"F=0.2".."F=0.8"lookup missed and the line mark's stroke fallback paintedpaint.fill— theme blue at the layer'sopacity=0.6— instead of the literalstroke="#AAAAAA"the layer had set all along. The key now travels ondetail, the channel that groups without painting, mirroringdesugar_parallel_coordinates. The stale_iso_fentry in the color-binding allowlist, whose rationale asserted the curves were already grey and that the single-color rendering was an unrelated defect, is deleted with it — both clauses were false. - Breaking:
catplot(kind="count")accepts a channel object like its seven siblings (#192).countwas the only kind that read the rawx=/y=argument again after the shared splitter had resolved it, socatplot(..., kind="count", x=fm.X("g"))died with a bare PyO3TypeError: argument 'field': 'X' object is not an instance of 'str'— naming neithercatplot, norkind="count", nor a working route — whilex : str or encodingwas already the documented contract. It now derives the aggregated field from the resolved channel, the same idiom the estimating kinds already use, which also closes a latent second defect on the same line; see Breaking, below. The bare-string path is byte-identical, SHA-256-pinned. - Breaking:
displot(kind="ecdf", hue=...)renders per-class curves (#200). The ecdf branch is the onedisplotpath that builds its ownBin, and it built one without the group key, so the transform discarded thehue=column before the encoding referred to it. The branch now hands theBinthe group key, on a support the groups share. The no-hue ecdf path is byte-identical. - Breaking: a layered chart is judged by the marks it draws, and an axis may bind from the layer that binds it (#201-D). Lowering a
(tick + line)composition leavesmark="tick"at the spec root as a placeholder, and single-axis-exemption eligibility was decided from that root mark alone — so the resolver granted the exemption to a chart whose line layer genuinely needs both axes and synthesized a0…1dummy y scale. Measured on a rug layered under a density curve, the curve was squashed into the foot of the panel: polyline y extent(368.316, 416.911)of a 480px canvas under y tick labels1, 0.9, … 0. It now renders at(24.0, 412.961)under the density column's own units,0.13, 0.12, … 0.01. Eligibility is now decided by every layer that paints; binding takes the chart encoding when there is one, else the first layer eligible to supply it. A chart-level or layer-0 binding always wins, so the change is bounded to specs whose merged chart+layer-0 encoding leaves a positional channel unbound: specs that resolve through the generic two-axis path are untouched, while specs that resolved through the single-axis exemption with an axis unbound do move, by design — that is the defect being fixed, and the geometry above is an instance of it. The value axis of a baremark_tick + mark_linelayering is deliberately left untitled: the fallback resolves a scale, not the caller-written binding an axis title is a claim about, so titling from it would assert something no caller said. To get a title, write.encode(y=fm.Y("density", title="Density"))on the composition's own chart encoding, or on the first chart of the pair (layer 0) — atitle=on any later layer is ignored, being exactly the fallback binding just described as not title-bearing. Measured ontick + line:tick_titled + line_plainandline_titled + tick_plainboth renderDensity, whiletick_plain + line_titledrenders no title at all andline_plain + tick_titledrenders layer 0's bare field named. Watch the trap in the third of those — the density column is the line's, so titling the line chart is the obvious move, and intick + linethe line is the second layer. The accompanying new typed refusal, and the twelve pre-existing silent drops this closes, are under Breaking, below. - Breaking:
displot(x=..., kind="rug", kde=True)renders with a titled density axis (#201-B). This composition is one the docstring advertised twice and named rug for explicitly, and it raised —encoding 'y' expected EncodingSpec, got None— because the x-only root encoding fell through the generic x/y check. #201-D made it render with the correct extent and tick labels, but through the binding fallback, which resolves a scale rather than a chart-level binding, so the density axis came out untitled.displotnow binds at chart level the density column the overlay already names, and the axis is titleddensity— the KDE transform's own output column name, exactly whatdisplot(kind="kde")anddisplot(kind="kde", rug=True)already title the same axis and whatkind="ecdf"does withcount. The curve's extent and tick labels are unchanged from #201-D, the rug's 200 ticks still sit at the axis base, andhue=still yields two curves and split ticks, now titled. Not fixed here and pre-existing:displot(y="v", kind="rug", kde=True)silently drops the KDE overlay, because the overlay block is gated on the x variable, and renders a bare vertical rug. - Breaking: the binning rule you name is the rule that bins, and the rule the wire reports (#193).
displot'sbins=was handed to a door that read only an integer count, so every other spelling was silently discarded and the chart fell back to Sturges. Measured pre-fix:bins="fd","freedman_diaconis","auto","scott","stone",bins=0.5andbins=np.int64(9)all rendered the identical 11-rect Sturges histogram with an empty transform payload;bins=Truerendered a 1-bin histogram, becauseboolsubclassesint;bins=0raised aValueErrornamingBinrather thandisplot; andbins=-3leaked a rawOverflowErrorout of the renderer. The door now hands the value to the parser its siblings already use. Serialization is fixed with it:BinMode::FreedmanDiaconismapped to the same empty wire payload as Sturges, soto_dict()/to_json()reported Sturges for a chart that had drawn Freedman–Diaconis. FD now carries an explicitly-named additivebin_rulekey while Sturges stays the wire default — the absence of all three mode keys — so every pre-existing payload keeps its exact bytes; a payload namingbin_ruleand a numeric key refuses rather than dropping one answer.repr(Bin("x", bins="fd"))gains a trailing, bins='freedman_diaconis'; every other mode's repr is byte-identical. Six public-API behavior changes ship with this; all six are under Breaking, below. - Breaking:
multiple="stack"ondisplotproduces a stack (#194).displotbuilt its own position adjustment frommultiple=and never forwarded the mode intomark_histogram, so the underlyingBinran at its default and binned each group over its own data range. The groups' bars therefore shared no x position and were not even the same width — measured on two 300-point normals at means 0 and 3, bar widths of31.34 pxand34.19 px, and 16 distinct x starts where a stack needs 8. The stack adjustment had no pairs to pair, and the render was a side-by-side chart wearing a stack's name. What amultiple=mode means is now answered in one place, which decides the position adjustment and the binning extent together, because bars can only stack if every group binned against the same edges.multiple="layer",multiple="dodge", the no-hue"stack"path and thekind="kde"branch are byte-identical. A rider on the same hunk:catplot's dodge read the rawhue=argument, sohue=fm.Color("g")died with an untypedTypeError: Object of type Color is not JSON serializable; it now reads the field name. Not fixed and disclosed:displot(kind="kde", multiple="stack")still does not forward the mode tomark_density. - Breaking: a fit that draws alone knows whose columns it drew, and
line_kwsreaches the line (#199). The fit-family builder bound every layer to the transform's own output columns with notitle=, and the renderer resolves an axis title from layer 0 only — so whenever no scatter happened to sit at layer 0, the value axis was titledci_lower, the confidence band's lower bound, the wrong quantity rather than merely an internal spelling, and the predictor axis was titledx. Measured over the full 40-cellmethod × ci × show_metricsmatrix underscatter=False: 7 of 40 cells were correct before (exactly the sevenmark_smooth-routed methods atci=None, show_metrics=False, where a single-line shortcut keeps the chart-level encoding), 40 of 40 after. Separately,line_kwswas applied by rewriting the finished chart's layers, which on the smooth-routed branch do not exist yet — the chart carries a pending stat mark until render — so the guard was falsy and the styling vanished: 12 of 40 cells applied it before, 40 of 40 after, the 28 dropped cells being exactly the seven smooth-routed methods × 4. Every branch now forwards it at construction. One golden moved,residplot_lowess.svg, whose y-axis title changes and nothing else. Two user-visible consequences are under Breaking, below. - Breaking:
displot(multiple="dodge")bins every group on shared edges."dodge"joins"stack"and"fill"in requiring one binning extent, leaving"layer"as the only mode that may bin per group — it is the only one that asks nothing of its neighbours. The band a dodged bar takes its slot in is the bin, so the bins have to be the same bins for every group before a slot means anything. Previously each hue group binned over its own range: measured on a two-group frame, 9 bars of one width against 10 of another, sharing zero x positions. See Breaking, below, for the measured after-state. - Breaking: a dodged span mark subdivides its band instead of overrunning it, and stops dropping a bar.
apply_dodge's continuous branch offset only the band column and left the span's other end alone, so each group's rect came outbin_width ∓ offsetwide rather than a share of the bin — and a negative offset could push the leftmost bin start below the x-domain, where the scale returnsNaN, the pixel fails to resolve and the row is skipped entirely, so the bar was missing, not merely mis-sized. Both endpoints now move together into the group's own sub-slot. This reaches every dodged span mark, not onlydisplot— see Breaking, below. - An all-zero-extent bar batch now says why it drew nothing instead of rendering a silent blank panel. The zero-extent guard that stops an invisible rect reaching the SVG (see T10b, below) left nothing downstream able to tell that silence from a chart that legitimately had nothing to draw; the four rect builders now set the batch's empty-reason when — and only when — the guard emptied a batch that had rows to draw. Measured on
importance_chartover an all-zero importance column:bar layer 0 drew nothing: mark_bar() computed a zero width or height for all 4 of its rects (every value equal to its own baseline, or an empty group in every bin); a zero-extent fill paints nothing, so none were emitted. A batch already empty for a documented reason (zero rows, null categories, non-finite values, unresolvable pixels) never reaches the guard and stays quiet, and the non-zero control emits nothing. SVG bytes are unchanged everywhere — but it is a newUserWarning, so see Breaking, below. displotrefuses in its own voice, and stops dropping a mark it was asked for (close remediation). One helper now answers forhist/kde/ecdfand both overlays, somark_histogram() requires .encode(x=...)and itsmark_density()twin no longer escape from adisplotcall:displot(kind='hist', y='v') is not supported -- kind='hist' draws the distribution of the variable x= names and computes the other axis itself (a count, a density, a cumulative frequency), so a y= variable has nowhere to go. Pass x='v', or kind='rug', which draws its ticks against either axis.kind="rug"is deliberately excluded, since a tick draws against either axis.displot(bins=)now warns when the rule is inert forkind="kde"/"rug", and only when the caller actually stated a rule —bins=Noneandbins="sturges"both mean the default a non-binning kind would have used anyway. See Breaking for thekind="rug", y=..., kde=Truecase, which now refuses.lmplotandresidplotaccept an encoding object forx=/y=on every method (close remediation). Seven oflmplot's ten methods already did, because they route through.encode(); the three that construct a transform directly, plusresidplot, leaked a binding-layer error instead — measured, the raw PyO3TypeError: argument 'x': 'X' object is not an instance of 'str'fromlogistic/glm/robust, and polars'TypeError: cannot turn 'ferrum.encoding.positional.X' into selectorfromresidplot. Accepting rather than refusing, because refusing would have regressed seven working paths. The channel still reaches.encode(), so itstitle=survives: measured,lmplot(x=fm.X("bill", title="Total bill (USD)"), method="robust")renders that title rather than the bare column name.mark_tickjoins the mark×dtype color-parity sweep it was missing from (#131), with a Python twin pinning four ticks per swatch in both the string and categorical dtypes. No behavior change — this is the coverage that makes the color read batch E gavemark_tickunable to regress silently.- Breaking: eleven grouped transforms (
Aggregate,Summary,BoxStats,ErrorExtent,Violin,Pivot,DataAggregate,DensityData, and — with a warning, not a row-drop —Impute/Smooth/Robust/DataStack/JoinAggregate/DataWindow) move onto one shared partitioner (group_key::group_partition_multi), closing the repeated-groupby-name gap everywhere at once and installing one null-key policy instead of eighteen hand-rolled ones. See Breaking, below, for the two disclosed output changes this migration carries. transform_density(field, groupby=[...])now honors every groupby dimension — it previously grouped by only the first and silently discarded the rest.transform_pivot/transform_aggregate/transform_densitynow refuse a repeatedgroupbycolumn name at Python construction, matching every typed transform constructor's existing behavior.- A one-element (or otherwise not-length-2) explicit
domain=/range=on any of the seven continuous scale kinds now refuses with a typed message instead of panicking with an out-of-bounds index (#152). Ascale=dict readsx scale: domain must have length 2; got 1, naming the channel you wrote; aconfigure_axisdomain keepsx axis scale-domain config: .... - Six color-range parse sites (three encoding-level, three chart-config-level, including a previously-unwarned continuous
filter_mapsibling) now raise instead of silently discarding the entire explicit range in favor of the theme palette (#126).ferrum.color.to_hexnow keeps a tuple's 4th (alpha) component on every accepted form instead of silently dropping it, and raises a typed error for a non-numeric component instead of an escaped bareTypeError(#122). Chart-config color fields (AxisConfig,LegendConfig,TitleConfig,GridAxisConfig,GridConfig) now refuse an unparseable color string at construction instead of silently keeping it unresolved (#107). A time-typed format on a non-temporal resolved scale now refuses at all three surfaces that accept a format (per-channel, chart-level, and the facet independent-axis path) instead of rendering a nonsense epoch-date artifact (#133). mark_text/mark_label/mark_rect(heatmap cell annotations) now propagate a typed error for an unreadabletext=column instead of silently rendering a blank/degraded panel (#166).Chart.__add__(a + b) now preserves each layer's owndata_sourceinstead of unconditionally overwriting it — a multi-output composite mark (mark_qq,mark_violin,mark_boxplot, …) now composes via+in either order; two different composite charts that happen to share a transform's auto-generated name used to let one side's data silently overwrite the other's at render, a defect #198 closed by refusing at composition time (superseded above: they now compose correctly instead, under "Two composite charts compose").rank1d(algorithm="covariance")now refuses aywhose length doesn't matchX's row count with a typed message instead of panicking, and drops null-yrows (with a warning naming the count) instead of silently zero-imputing them, corrupting every feature's score (#204).rank1d/rank2dnow refuse an X-less fitted estimator on every algorithm, not onlyalgorithm="covariance"(#216).- Breaking: a multi-chunk
pyarrow.Tablepassed torank1d_chart/rank2d_chart/Rank1DVisualizer/Rank2DVisualizeris now consumed in full instead of silently truncated to its first chunk (N1). The raw-data coercer tookX.to_batches()[0], so any Table built bypa.concat_tables, a multi-fileparquet.read_table, or aRecordBatchReaderdrain (the ordinary provenance of a real chunked Table) computed every rank statistic over a fraction of its rows — measured on a 200-row fixture split into two 100-row chunks,rank1d_chart(chunked, algorithm="variance")'s top score for columnbread 1.169347 (the first 100-row chunk only) against the correct 1.018316 (all 200 rows), matching theModelSourcepath and a single-chunk Table of the same data. The covariance path did not silently compute a wrong number; it refused with a misleading"y length must match X row count", since X's row count was silently halved whileykept its full length — it now renders and matches theModelSourcepath. An empty 2-columnpyarrow.Tablealso used to return zero features (a smaller instance of the same coercer bug discarding the schema along with the rows); it now returns 2 features scored 0.0, matching an emptypolars.DataFramewith the same schema. - Nine precomputed-diagnostic methods (
roc_curve,pr_curve,cumulative_gain/lift_curve,calibration_curve,confusion_matrix,classification_report,predictions,discrimination_threshold) now raise a typed error naming the calling figure function and the observed-vs-required shape for a malformedy_pred, instead of leakingIndexError/ArrowInvalid/an unhashable-typeTypeError/a numpy broadcast error, or silently computing a wrong-but-plausible result for a 1-Dy_predagainst a genuinely multiclass target (#208). pr_chart(iso_lines=True)(and any caller reaching the shared metric-label/direct-label enumerators with a null-carrying group column) no longer emits polars' internal "Comparisons with None always result in null" warning (#220).- Per-mark honored-kwarg vocabularies (#243): a mark kwarg not honored by that specific mark now refuses by name at construction instead of being silently accepted and dropped at the Rust wire — e.g.
mark_bar(arrow=True)(a segment-only field) now raises, namingmark_bar's real honored set. Settles #154 (mark_bar(band_size=...)—band_sizeis honored only bymark_tick/mark_rect). The refusal timing differs by mark family: a primitive mark (mark_bar,mark_point, …) refuses immediately at themark_*()call, while a composite/statistical mark (mark_boxplot,mark_violin, …) constructs successfully and refuses only once the pending mark resolves, at.to_dict()/.to_svg()— an existing property of the pending-desugar architecture that this change now surfaces for the first time. ferrum._warn.warn_once's dedupe identity widens from(channel, kwarg)to(channel, kwarg, message)(#240) — two calls on the same pair with genuinely different messages now both emit, once each, instead of the second being silently swallowed. Two carve-outs that said "planned for a future Phase" (a permanently untrue statement for a permanent refusal) now state the true, permanent fact.- Breaking:
BreakAxis's piecewise scale is now built against the broken scale's own padded pixel range instead of the raw plot rect, and a tick label under a break now translates rigidly on its own tick's anchor instead of having its own drawn baseline-offset coordinate reverse-mapped (#226). Every effective break previously discarded the axis's own scale padding (the positional-scale inset, up to 8px per end): every mark, tick, gridline, and the break indicator now sit at the same pixels as the unbroken chart's wherever they aren't inside a gap; an out-of-domain value clamps to the domain's own padded edge; the axis domain line spans the full plot rect exactly as on an unbroken chart. The rigid tick-label translation closes a second defect on top of that: a label's own drawn offset from its dash used to compress by a different amount per sibling and read a flush-edge label's offset as exactly zero. Every visible tick's label↔dash offset is now bit-for-bit identical to the unbroken chart's, and a label hides if and only if its own tick's anchor falls inside a gap. Five break goldens moved and were re-blessed under the PNG-inspection protocol. - Breaking: an annotation with a data-space extent on a broken axis is now clipped like the mark geometry it mirrors, instead of being suppressed whole the moment a gap touches it (#228).
annotate_rect/ann.rect/ann.spanclip silently into one piece per visible segment (a span's label anchors on the largest surviving piece's midpoint);annotate_hline/annotate_vline/ann.line/annotate_arrow/ann.arrowsplit per visible piece through the same vertex splitter mark geometry uses, with an arrow's head riding the piece that reaches its tip and dropping alone if the tip itself is in a gap;ann.bracketkeeps its permanent suppress-whole contract, since its two endpoint tips admit no honest split; point-anchored kinds (text,callout,image) are unchanged. An extent annotation is suppressed now only when nothing of it survives the gaps or its kind admits no split at all — previously any gap touching an extent's endpoint or interior dropped the whole annotation. -
Breaking: nine disclosed residuals of the break-axis pixel-space surgery model are closed (#230; the temporal-gap-bounds item is documented under Added, above). Two or more
BreakAxisspecs on the same axis now merge into one break result before anything is remapped, instead of composing sequentially against the original unbroken domain — the sequential model could resurrect a mark the first break had hidden by clamping its hidden sentinel back into view under a second break; the sentinel is now poison at the remap mechanism itself (reverse-maps toNaN, never back into the domain), and a conflictingbreak_style/break_sizeamong merged specs keeps the first declaration's value and warns once per axis per field (newRenderWarning::BreakAxisMergeConflict). A vertex-placed mark (mark_line,mark_rule,mark_segment's shaft, box/violin whiskers, and an area'sline=/borders=outline) crossing a gap now emits one sub-node per visible segment, cut exactly at the gap edge, instead of one node whose in-gap vertices sat at the hidden sentinel and drew a stroke spiking off-canvas and back (a curvedinterpolate=path keeps the old per-vertex fallback and can still spike — disclosed, unfixed). A split roundedmark_bar/mark_rect/annotate_rectpiece now rounds only the corners it inherits from the source rect's boundary, squaring a corner on a gap-cut edge instead of rounding it (a rotated, rounded, cut piece is a disclosed exception and keeps its original uncut radius). A glyph mark's (point/tick/text/label/image) move/hide test under a break now uses its own exact scale-mapped data anchor instead of the midpoint of its drawn extent, fixingTriangleUp/TriangleDown(whose bbox midpoint sat a quarter of the triangle's height off its true anchor) andmark_text'sdx/dy-offset labels (which previously hide-tested the offset position rather than the data position). A break-split keyed mark batch's piece keys now suffix as{key}#{i}(first piece unsuffixed) instead of duplicating the source key onto every piece, which previously made WASM's key-based transition pairing treat split pieces as one logical row.BreakAxisnow applies to every facet panel, each against its own plot rect and scale pixel range, instead of only panel 0 — diagnostics report once per chart in the common shared-scale case, qualified by panel when panels genuinely disagree. A chart combiningCoordPolar/CoordGeowith anyBreakAxisnow raisesValueErrornaming the coordinate and axis instead of silently corrupting geometry — under polar coordinates a break previously reverse-mapped already-projected wedge pixels through the Cartesian scale the projection replaced, destroying every wedge with no warning. None of these eight geometry/diagnostic fixes moves an existing golden (no shipped break golden exercises the affected shapes). -
Breaking: a not-a-time value (
pandas.NaT,numpy.datetime64("NaT")) is now refused by name at the three Python surfaces that accept a temporal value —BreakAxis.gap, ascale={"type": "time", "domain": [...]}domain element, and an annotation coordinate — instead of becoming aNaNthat fails somewhere else or not at all.temporal_coord_to_epoch_ms(pd.NaT)returnednan, so aNaTin ascale={"type": "time", "domain": [...]}reached the wire as a null domain bound, andann.text(x=pd.NaT, ...)died at the Rust boundary with a leaked JSON-parse diagnostic (chart_config: expected value at line 1 column 40). All three consumers now raiseValueErrornaming the value,BreakAxis.gapprefixing its ownBreakAxis.gap[i]:label as before. The Rust-backedfm.TimeScale(domain=[...])extractor stays narrower forpd.NaTthe same way it does fornumpy.datetime64(see thedatetime64bullet above):fm.TimeScale(domain=[pd.NaT, ...])still raises a leakedTypeError: argument 'domain': 'float' object cannot be interpreted as an integerrather than a named refusal, and the filed Rust-widening follow-up needs to coverNaTas well asdatetime64. BreakAxis.gapkeeps the container type it was given. A tuple of pairs (gap=((1, 5), (6, 9))) was rebuilt as a list of pairs by the construction-time coercion, which silently made the frozenBreakAxisunhashable —hash(...)on that spelling raisedTypeErrorwhere it had always worked, and hashability depended on which of two equivalent spellings the caller chose. A tuple now stays a tuple, a list stays a list, and each pair is canonicalized to a 2-tuple as before.-
A numeric
BreakAxis.gapbound now always stores a plain Pythonfloat, including a plainint(gap=(90, 10)) andnumpy.float64. Both previously kept their original type —np.float64because it subclassesfloatand slipped past the coercion, a plainintbecause the plain-numeric branch returned its input unchanged — so a numpy-numeric gap could storenp.float64/np.int64while every other numeric spelling storedfloat. A reversed-pairValueErrornow reports the coerced float value ("start (90.0) must be less than end (10.0)"rather than"start (90) ..."); the coerced value itself is unchanged (90 == 90.0), so this affects only the stored type and error-message formatting, not comparisons or rendering. -
Breaking: one target-hygiene contract now governs a corrupted classification target (#203), replacing behavior that varied by the target's dtype and by the model's class-resolution tier. It covers the seven
ModelSourceclassification methods (roc_curve,pr_curve,calibration_curve,cumulative_gain,lift_curve,discrimination_threshold,confusion_matrix) and every figure function built on them,class_prediction_error_chartincluded; plus the eight classification methods of the precomputedy_true=/y_pred=path (roc_chart,pr_chart,calibration_chart,gain_chart,lift_chart,discrimination_threshold_chart,confusion_matrix_chart,classification_report_chart); plus, since #206 below, the model-backedclassification_report_chart/ClassificationReportVisualizer, previously the one classification surface outside it — narrowly: the null cell, plus a total-mismatch cell of its own (below) added in a later fix cycle. Its stray-value cell is not run there, since sklearn's ownclassification_reportresolves its class union directly rather than throughcheck_resolved_target's absorb-and-warn cell; a model exposing noclasses_can still surface sklearn's own untypedValueError: Mix of label input types (string and number)against a non-numericy(a narrower, disclosed, not-yet-closed gap — see the #206 bullet below). One classification surface stays outside the contract entirely, stated so it is not read wider than it is:class_balance_chart, which countsy's own values rather than resolving them against a model. Three cells, each a behavior change for a corrupted target only:- A null-bearing target refuses, with a
ValueErrornaming the diagnostic invoked, the null count out of the row count, andy's observed values. A null is not a class observation, so counting it as a negative fabricates data; scikit-learn refuses a NaN-bearingytoo. This replaces five different old outcomes. On aUtf8/Categorical/Enumtarget it replaces an unownedTypeError: '<' not supported between instances of 'str' and 'NoneType'raised from whichever of four internalnp.unique/sortedsites the call reached first, naming neither the target nor the diagnostic. On a numeric target it replaces silence: the nulls arrived asNaN, became a third distinct class, and shifted the metric — measured on the 200-row binary fixture with 10 nulls,roc_curvereturned AUC 0.9395 against a clean 0.9843 — or, on aclasses_-less model, pushed resolution from tier 2 to tier 3 and turned the same input into a refusal about the wrong thing. On the precomputed path it replaces two refusals that gave the wrong diagnosis (roc_chart: "requires binary y_true; got 3 unique classes", countingNaNas a class;calibration_chart: "no row of y equals the positive class nan") and two silent accepts (confusion_matrix_chartandclassification_report_chartstringifiedNonethroughsorted(..., key=str)and rendered it as a class of its own). "Null" now means null in every dtype family a polars target arrives in, the temporal one included: aDate/Datetimecolumn's nulls arrive asNaTrather than asNaNorNoneand were seen by nothing, soconfusion_matrix_chartrendered theNaTas a class of its own. An all-null target still refuses, as it did before, but now by the null rule: the message names the nulls instead of advising the caller to check aclasses_that was never wrong. One spelling stays outside the guard: a pandas nullable target (pd.NA) never reaches it, because ferrum's polars ingestion refuses it first with its own untypedTypeError— an ingestion-layer gap, not a silent accept. - Stray out-of-domain values among valid rows now warn, naming the diagnostic, how many such rows there were, and which values they held, once per computed call. What happens to the rows is unchanged, and it differs by family, so the two messages say different things. On a curve (
roc_curve,pr_curve,calibration_curve,cumulative_gain,lift_curve,discrimination_threshold) the row still counts as "not the positive class" — scikit-learn's ownpos_labelsemantics — and the warning says counted as negative: measured on the same fixture with 10 rows set to a stray7,roc_curvereturns AUC 0.9395 (exactlyroc_auc_scoreover the absorbed indicator) against a clean 0.9843, and now says so. On the confusion matrix (confusion_matrix,confusion_matrix_chart,class_prediction_error_chart) the kernel maps the row to its out-of-vocabulary code and drops it — counted in no cell, not absorbed into one — so the warning says dropped. The drop itself is not new; the silence around it was total: measured, the matrix's cells summed to 190.0 of 200 rows on the binary fixture and 290.0 of 300 on the multiclass one with no diagnostic of any kind, whileroc_curveon the identical source warned. One direction deliberately does not move, and was checked: a stray value on aclasses_-less binary model still refuses rather than absorbing, because the stray inflatesy's cardinality past the score-column count, resolution falls to the parsedclass_{i}labels, and those match no row at all — a total mismatch, not a stray among valid rows, so there is no class set to absorb into. A binary pair whose positive class matches no row now says nothing extra:binary_indicatorrefuses moments later and the call returns no number, so the stray warning that used to precede that refusal (measured withclasses_ = [0, 2]against a{0, 1}target: "96 row(s) … were counted as negative") is gone — it asserted an absorb that never happened. - The total-mismatch refusal reaches two more places.
cumulative_gainandlift_curvejoin it: a binary target holding no positive row previously returned a gain curve reaching 1.0 (the denominator floors at 1) and a lift chart carrying only its baseline (the positive class fell through the zero-base-rate skip), whileroc_curveon the identical source refused by name. And a multiclass resolution where zero resolved class values match any row now refuses, closing the silent all-NaN case the resolver's own docstring called a known gap — measured, three NaN curves where scikit-learn's one-vs-rest AUCs over the same probabilities were 0.872 / 0.942 / 0.930.
Unchanged: multiclass one-vs-rest still tolerates some classes being absent (and does so without warning — every row is inside the class set, it is the class set that has a spare member),
lift_curvestill skips a zero-base-rate one-vs-rest class, an empty target is still not an error, an all-positive target still yields the kernels' honest NaN, anddiscrimination_threshold(cv=...)'s request-vs-fold-slice rule is untouched. A clean target is byte-identical on every diagnostic and no golden moved. - A null-bearing target refuses, with a
-
Breaking:
classification_report_chart's model path (chart builder andClassificationReportVisualizer._materialize) now translatesmodel.predict's output intoy's domain through the SAME positionalclasses_↔encode_valuescorrespondence the batch-G confusion fix built, before calling sklearn, reusing_predictions_in_y_domain/_coerce_real_classesrather than deriving a second translation (#206). AUtf8/Categorical/Enumyfit against an int-codedclasses_— the ordinary shape when a user label-encodes for training and keeps the readable target for plotting — previously madey_trueand the untranslated predictions disagree on type, and sklearn's ownunique_labelsraisedValueError: Mix of label input types (string and number)before any metric was computed; a numericyis byte-identical (the translation is the identity).class_prediction_error_chart, #206's other named consumer, needed no code change: it consumesModelSource.confusion_matrix()wholesale and never touchesmodel.predictdirectly, so it inherited the batch-G fix by transitivity — verified with a dtype-matrix regression pin cloned from confusion's own. The model path also now runs the shared null-target guard (#203) before predicting, closing the one classification surface that guard left outside its contract: a null-bearingynow refuses in the guard's own typed voice instead of leaking scikit-learn'sInput y_true contains NaN/Classification metrics can't handle a mix of unknown and binary targets. The visualizer's own guard namesClassificationReportVisualizer(matching itsrequire_sklearn(...)call two lines above), not the figure function it never calls, and aClassificationReportVisualizer(model).fit(X)(yomitted, the class's own documented default) now refuses the same typed way instead of leakingTypeError: 'NoneType' object is not iterablefrom ferrum's own internals. Disclosed, not closed by this fix: a model exposing noclasses_still hands sklearnmodel.predict's raw, untranslated output — there is no positional correspondence to translate through — so a non-numericyagainst such a model's numeric predictions can still surface sklearn's own untypedValueError: Mix of label input types (string and number); this is a narrower instance of the same failure family, tracked as a follow-up rather than fixed here. The same branch'sconfusion_matrixlabel derivation is disclosed with it: it sorts the rawy_true/y_predunion, so aclasses_-less model predicting numbers against a stringyraisesTypeError: '<' not supported between instances of 'str' and 'int'(measured) — the unowned shapeclassification_report_chart's own derivation now refuses by name, surviving on the confusion side. Fix cycle 5, 2026-09-13 — total mismatch refuses instead of rendering silently. The translation above is only sound whenclasses_andydescribe the same labels in two dtypes; when they describe different labels entirely —classes_ = [0, 1, 2]fit againsty = ["c0", "c1", "c2"]is the shape — every prediction translates to"0"/"1"/"2", valuesynever held, and the chart rendered an 18-row, six-class report with every metric 0.0 and no warning, whileconfusion_matrix_charton the identical source warned and dropped the rows. Before #206's translation existed, this same shape raised sklearn's own loudValueError: Mix of label input types (string and number), so closing #206 for the ordinary (same-labels) case had traded that loud refusal for a silent, wrong-looking-plausible chart on this adjacent (different-labels) case._curve_frames.check_translated_classes_match_ynow refuses this total mismatch — the same standing policy #203 already applies elsewhere (check_resolved_target's zero-match cell,binary_indicator's positive-class cell) — on both model-path consumers, on the coerced class vocabulary before anything is translated. A partial overlap (part of the translatedclasses_lands iny's domain, part doesn't) is unaffected and still renders, since it is the ordinary out-of-vocabulary case sklearn's own report already tolerates. What is tested is the class vocabulary, not the predictions the model happened to make: a correctly-labelled model reported on a slice it gets entirely wrong (yholds only one class, the model predicts only another) renders as it always has. - Breaking: both
classification_report_chartpaths (model and precomputed) now order the class axis by sklearn'sunique_labelsconvention — the union ofy_true/y_pred's own distinct values, in their natural ascending order — closing the divergence between them (#224a). The precomputed path'ssorted(..., key=str)rule retires for this figure specifically (the close remediation later retired it onconfusion_matrixtoo — see "One class axis for the whole label-domain family" under Breaking changes): it sorted the confusion matrix's already-stringifiedactual/predictedcolumns, which is decimal-string order — digit count before value, so"10"lands between"1"and"2"— where sorting the raw values first, matching sklearn'sunique_labels, sorts ascending. The order moves for any numeric class set whose labels have unequal digit counts, two classes included — not only at 10+ classes, as this bullet first claimed. Measured:{2, 10}moves from10, 2to2, 10;{1, 2, 10}from1, 10, 2to1, 2, 10; a 12-class target from0, 1, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9to0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, now matching the model path exactly at both the frame and the rendered SVG's y-axis tick order. Class labels of equal digit count ({0, 1, 2}), and any non-numeric (string/Categorical/Enum) target, are unaffected — both orderings agree there. No golden exercises this path (noclassification_reportgolden exists); the documented-divergence test is flipped totest_classification_report_chart_class_axis_order_now_identical, with the two-class move pinned bytest_precomputed_classification_report_order_moves_below_ten_classes. -
Breaking:
classification_report_chart's class-axis label derivation is now total by partition (_curve_frames.report_labels, #224a), and four input shapes that rendered before it now refuse with a typedValueError. Sorting raw values is not total the way the retiredsorted(..., key=str)rule was — that rule stringified first, which is why it accepted everything and ordered it wrongly — so the derivation owns its whole input space in four named cells instead of patching shapes as they are reported: a null in either array, a mix of ordering families, a homogeneous orderable-and-hashable union (the answer), and a homogeneous family that cannot serve as a class label at all — because it does not order (complex,dict, a type with no<), or because it orders but cannot be hashed (list,set,bytearray) — the confusion matrix the report is built from keys each class by its label value, so an orderable-but-unhashable label is as unusable as an unorderable one. Measured before/after against the pre-fix code — thesorted(..., key=str)rule this replaces, character-identical in v0.23.0 and at this wave's branch point, where the measurements were taken: (1)y_true=[0,1,0,1]withy_pred=["0","1","1","0"]rendered classes'0'/'1'with every metric 0.5 — string predictions silently scored against integer targets — and now refuses as a mix of label types; (2) a null-bearingy_predrendered a phantom class of its own (["a",None,"a","b"]→ a'None'row at 0/0/0 and class'b''s recall at 0.5;[0.0,nan,0.0,1.0]→ a'nan'row the same way) and now refuses namingy_predand the null count, in every dtype family a null arrives in (None,NaN,NaT); (3)complexlabels rendered as'(1+1j)'/'(2+0j)'and now refuse as unusable, whiledictlabels leakedTypeError: unhashable type: 'dict'and now refuse by name too; (4)list/set/bytearraylabels — orderable via<, but not hashable — previously answered inside the label derivation itself and then leakedTypeError: unhashable type: 'list'/'set'/'bytearray'one statement later, out of the confusion matrix's owndict-keyed lookup; they now refuse at the same named site ascomplex/dict, naming the reason ("order, but cannot be hashed") rather than the generic mix message. Afrozensetpair — hashable, but only partially ordered by subset — is not one of the four: it still renders, but the deduplication that used to assume equal values sort adjacently (true only for a total order) is replaced with hash-equality dedup, closing a real duplicate-label bug it exposed (measured: a two-classfrozensetpair previously produced three labels, one of them repeated). Anint/floatorbool/intunion is not a mix — those are one ordering family and keep rendering exactly as before. Also:y_true's shape now gets the same 1-D checky_pred's already had (#208) — a 2-Dy_truepreviously misdiagnosed as "a mix of label types" (each row read as a distinctlist-family value) now refuses with the correct shape message namingy_true.confusion_matrix_chartdid not move with any of this when #224a shipped — on the identical inputs it still rendered the mixed union (16 cells), rendered a nully_predas its own class, renderedcomplexlabels, and ordered its axis10, 2— and that asymmetry, stated here deliberately rather than as an accident, is what the wave's close review returned as a concern, twice. It is now closed (see "One class axis for the whole label-domain family", below): both confusion paths derive their class axis from the samereport_labelspartition, so the mixed union, the nully_pred, thecomplexlabels and thelist/set/bytearraylabels all refuse by name on every label-domain figure, and numeric labels order by value on all of them. The one surviving difference is the ordering of a string-keyed axis undersorted(..., key=str)versus the same values sorted raw — which is the same order, so nothing observable remains. -
Breaking:
ModelSource.embeddings(method="tsne")gains one perplexity-validation owner, shared with.intercluster_distance(method="tsne")'s existing clamp (#222, N4). Before this, the rawperplexitykwarg forwarded straight to manifolds-rs unclamped, and the unmodified default — not only a user-supplied value — raisedtsne_embedding failed: perplexity (30) must be strictly less than the kNN size (n)for everyn_samples <= 31, on.embeddings()directly and on both public surfaces built over it (manifold_chart,ManifoldVisualizer), since neither exposes aperplexityparameter of its own. The default now resolves tomin(30, n_samples - 2)and renders (e.g.n_samples=20renders atperplexity=18;n_samples=200is unaffected). An explicitperplexity=is validated, not silently reduced: non-numeric, non-finite (NaN/±inf), non-positive, or greater thann_samples - 2all now raise a typedValueErrornamingperplexity,n_samples, and the bound — replacing both the raw manifolds-rs"kNN size"message (an internal quantity no ferrum parameter names) and aPanicExceptiona negative or NaN value previously raised at the PyO3 boundary, which noexcept ValueErrorcould catch. An unknownmethod_kwargskey (a typo, or a real key from the wrong method, e.g.perplexity=passed tomethod="umap") now refuses by name instead of being silently swallowed by a bare.get(...)and computing the default embedding. No golden added or moved — t-SNE/UMAP output has no golden by design (manifolds-rs's RNG is not the byte-deterministicChaCha8Rngthis repo's other transforms guarantee);random_state=determinism within one process/platform/toolchain is unaffected. -
Breaking:
ModelSource.partial_dependence()on a multi-class classifier now emits one row group per class instead of silently returning class 0's curve alone (#209). The frame gains aclass_labelcolumn naming the model output each row belongs to, using exactlyshap_values()' vocabulary and its single shared owner:"target"on a regressor, the positive-class name on a binary classifier (sklearn's partial dependence reports the positive class only, so those rows are unchanged), one label per class on a multi-class classifier. Measured before/after for a 3-class model with 2 features atgrid_resolution=10:kind="average"went from 20 rows to 60;kind="individual"on 300 samples atgrid_resolution=6went from 1800 rows to 5400. The per-class values are sklearn's own per-output results, previously discarded for every class after the first. Single-output (regression/binary) frames keep their rows, values, and row order byte-identical — only the new column is added — and a multi-output regressor, which has noclasses_but several outputs, numbers themtarget_0 ... target_{n-1}rather than repeating a bare"target"that would merge unrelated curves.pdp_chartkeeps one facet panel per feature and bindsclass_labelto the color channel when the frame carries more than one class, so each panel shows one legended curve per class; thecenter=anchor, thekind="both"average join, and the ICEdetailpairing all carryclass_label, so curves cannot chain or cross-join between classes. A single-class frame keeps the color-free rendering it had, and the three existing PDP goldens are byte-identical; one new multiclass golden was added. - Breaking: the
class_labelvocabulary's single owner is now shared bypartial_dependence()andshap_values(), and the multi-output case it gained to serve the fix above movesshap_values()'s output — and three rendered charts — for one model shape (#209). A model with noclasses_but several outputs (a native multi-output regressor, e.g.RandomForestRegressorfit on a 2-columny) previously labelled every one of its outputs with the same bare"target", soshap_values()returned two unrelated outputs as one indistinguishableclass_labelgroup; they are now numberedtarget_0 ... target_{n-1}. Becauseclass_labelis whatshap_beeswarm_chart/shap_bar_chart/shap_waterfall_chartselect and facet on, this is a rendered-output change, not only a string column:per_class=Falsehad nothing to filter and pooled both outputs' rows into one chart (the bar chart then averaged them together); it now selects the first output's rows, andper_class=Truefacets into one panel per output where it previously drew a single unfaceted panel. Measured on 120 rows with three standard-normal featuresa/b/candy = [3a + 0.2c, 4b + 0.2c]throughRandomForestRegressor(n_estimators=5, max_depth=3, random_state=0):shap_values()'sclass_labeluniques go["target"]→["target_0", "target_1"]at an unchanged height of 720 rows; theper_class=Falseselection goes 720 rows → 360; andshap_bar_chart(source)'sabs_mean_shapmovesa1.181774 → 2.011961 andb1.626124 → 0.268149 (cis 0.0 on both), flipping the rendered bar order fromb, a, ctoa, b, c— the pooled ranking described neither model output. Single-output regressors and classifiers of every arity are unaffected on both methods, and no golden moved. - Breaking:
mark_discrimination_threshold(optimum_label=True)/(threshold_line=True)now refuses instead of silently vanishing whenmetrics=excludes"f1"(#189), if the caller passed the flag explicitly. Both flags default to a private sentinel rather than a materialized bool, so the mark can tell "the caller asked for this" apart from "the parameter's own default filled in True" — an explicit ask with no F1-optimum row to label/rule at is a self-contradicting request and now raisesValueErrornaming the flag andmetrics=; the un-passed default (optimum_label's own default isTrue) keeps the pre-existing silent downgrade toFalsethat batch F T3 shipped to fix the crash this replaced.discrimination_threshold_chartandDiscriminationThresholdVisualizerforwardoptimum_labelthrough unchanged rather than materializing their own default first, so a caller who never touchesoptimum_labelat any layer still gets the silent downgrade, not a refusal — only a genuinely explicitTrue(at any layer) with an f1-lessmetrics=raises. Clean (default)metrics=is unaffected on every path; no golden moved. - Breaking: the confusion family now answers a malformed classification target the way the report family does (whole-wave design review, finding 2, 2026-09-17). The target-hygiene contract's own header claimed "one contract ... applied by every binary and multiclass diagnostic on both source paths" while the confusion family sat outside two of its cells, and the hole was user-visible inside one figure family: on
y_true=["a","b","a","b"]withy_pred=["a",None,"a","b"],classification_report_chartrefused namingy_predand the null count whileconfusion_matrix_charton the identical arrays renderedpredicteduniques['None', 'a', 'b']— a class nothing predicted, scored against by the row holding the null. Three cells move, on malformed inputs only: (1) a null prediction refuses on bothconfusion_matriximplementations, model path and precomputed, in both spellings (Nonein an object array,NaNin a float one) and via the samerequire_no_null_predictionsguard the report path uses; (2) a fully disjoint translated class vocabulary refuses onconfusion_matrix_chartandclass_prediction_error_chart—classes_ = [0, 1, 2]againsty = ["c0", "c1", "c2"]used to render every cell as zero behind a warning saying 300 of 300 rows had been dropped, which is the all-zero renderclassification_report_chartalready refused (#206 cycle 5); a partial overlap still warns and drops, unchanged; (3)ModelSource.confusion_matrix's no-classes_branch derives its class axis throughreport_labelsinstead of a rawsorted(set(...))union, so aclasses_-less model predicting numbers against a stringyrefuses as a mix of label types instead of leakingTypeError: '<' not supported between instances of 'str' and 'int', and adict-valued prediction refuses instead of leakingTypeError: unhashable typeone statement later. The order that branch produces is unchanged for every input the old rule accepted. Clean targets are unaffected and no golden moved (verified by the golden byte-check suites). - Breaking: the precomputed confusion matrix's class axis joins the family's one partition, retiring
sorted(..., key=str)(whole-wave design review cycle 2, finding A, 2026-09-17). That rule stringified the label union before comparing it, and was carried for two cycles as a class ordering preference the report's #224a change was scoped not to touch. It was not only an ordering rule: stringifying makesstrtotally order everything, so it accepted every input — including ones the chart cannot draw. Measured ony_true=[0, 1, 0, 1]withy_pred=["0", "1", "0", "1"](object dtype): it derived four labels[0, '0', 1, '1']that stringify to two, returned a 16-row frame carrying only 4 distinct(actual, predicted)keys — each one four times, with the true diagonal mass split across visually identical cells — andconfusion_matrix_chartrendered four superimposed<text>nodes at each of four identical pixel positions (e.g. four nodes atx=178.166, y=133.537).class_prediction_error_chartrendered the same way;classification_report_charton the identical arrays refused by name throughout. Both confusion paths now derive their class axis fromreport_labels, so that input refuses on all three figures, and the family's four label-domain surfaces answer one input one way. Two user-visible moves: (1) a mixed-family union,complexlabels, andlist/set/bytearraylabels refuse onconfusion_matrix_chart/class_prediction_error_chartwhere they previously rendered (thelist/set/bytearraycase previously leaked an unownedTypeError: unhashable typefrom the old rule's ownset()); (2) numeric class labels now order by value rather than by digit count — measured,{1, 2, 10}moves from['1', '10', '2']to['1', '2', '10'], matching whatclassification_report_chartand the model path already rendered. String labels sort identically under both rules and do not move, which is every confusion golden in the repo: no golden moved (verified by the full golden byte-check suites). - Breaking:
classification_report_chart's model path refuses a null-bearing prediction vector instead of leaking sklearn's own error (cycle-2 intent-review observation, 2026-09-17). An estimator whosepredictreturns a null (an abstain mapped toNone, say) producedValueError: Classification metrics can't handle a mix of binary and unknown targetsfrom inside scikit-learn — naming neither the array nor the entry — whileconfusion_matrix_chartandclass_prediction_error_chartrefused typed on the identical input. The guard now lives inreport_predictions_in_y_domain, the owner both report consumers share, so the third label-domain figure answers the null-prediction cell the way the other two do. - The discrimination-threshold optimum label's text now comes from
_render_metriclike every other metric string (cycle-2 design review, finding B). It composedf"max F1 = {v:.3f} @ t={t:.2f}"inline — its own spelling, its own rounding — inside the subsystem #219 created to end exactly that, which made_metric_labels' "single producer of a user-visible metric string" claim false in its own module header.f1is now a registered metric kind (with a_NoCurveDefinition, since the curves a discrimination-threshold chart draws do not define an F1 score), and the annotation rendersf"max {_render_metric('f1', v)} @ t={t:.2f}", keeping"max "and the threshold suffix as that surface's own framing. The rendered text is byte-identical; no golden moved. A registered kind and a composable+ Label()class are no longer the same set, so_apply_metric_label_explicitnow validates against the class registry and refuses"f1"by name instead of raisingKeyError. - Target-hygiene refusals raised on the model path now name a lever the caller holds (cycle-2 design review, finding H). "Drop or impute the null rows" and "use one consistent value type for y_true and y_pred" are actionable for a caller who passed
y_pred=, and name an array the caller never produced wheny_predismodel.predict's output; those refusals now close with a clause naming the model instead. The diagnosis, the counts and the observed values are unchanged, and the precomputed path's wording is byte-identical. - Internal consistency, no behavior change: the
chart_name=keyword on the precomputed adapter's shape/arity guards is renameddiagnostic=, so one concept ("name the public entry the caller actually invoked") has one spelling across all 64 sites instead of two (cycle-2 design review, finding C);_SourceCache's store refusal now also covers the constructor path, whichdict.__init__'s C path had bypassed (finding F); the module split's four dead imports are deleted (finding D); two docstring references to a_DISC_FLAG_DEFAULTSsymbol that never existed now nameferrum.marks._desugar_helpers.DISC_FLAG_DEFAULTS(finding E); andresolve_disc_flagrefuses an unknown flag by name rather than as a bareKeyError(finding I). - Breaking:
diagnostic=now names the public entry the caller actually invoked on the model path too (whole-wave design review, finding 4, 2026-09-17). The parameter's documented contract has always been that it "names the public entry the caller actually invoked", and the precomputed path honored it, but the model path hardcoded the source method's name:fm.roc_chart(model, X, y_with_nulls)raised"roc_curve: ... Drop or impute the null rows before calling roc_curve."— naming a method the figure-function caller never called — whilefm.roc_chart(y_true=..., y_pred=...)on the same defect raised"roc_chart: ...". Every classification method on both source kinds now takes adiagnostic=keyword defaulting to its own name, and the figure functions and visualizers pass their own: a refusal or hygiene warning raised throughroc_chartsaysroc_chart, throughROCVisualizersaysROCVisualizer, and a directsource.roc_curve()call still saysroc_curve. This is a message text change only — no number, no frame, and no rendered geometry moves, and the name is deliberately not part of the cache key. The most visible instance:class_prediction_error_chart's inherited stray-drop warning now opensclass_prediction_error_chart:instead ofconfusion_matrix:, which is the case that could not be fixed by baking a name into the source method, since two figure functions render that one frame. - Breaking:
BaseSource._cache_keynow normalizes array-likes centrally instead of falling back torepr()for whatever it can't hash, and stops caching a value that stays unhashable after that normalization (#224b, N5). Four real collisions were verified end-to-end and are now impossible: (a)discrimination_threshold(cv=<splitter>)with a custom splitter whose class defines__eq__(disabling identity__hash__) but doesn't override__repr__— CPython's defaultobject.__repr__embeds the memory address, not the object's state, and two short-lived temporaries of the same class reliably land at the same freed address (measured 10/10 trials), socv=Splitter(3)followed bycv=Splitter(7)built the SAME cache key and the second call silently returned the first's frame; (b)learning_curve(train_sizes=<ndarray>), where numpy'srepr()rounds (precision=8) and truncates (threshold=1000→...), so[0.2,0.4,0.6,0.8,1.0]and the same array with the last element nudged by1e-12printed identically and shared a cache slot —validation_curvealready avoided this by locally tuple-ifying itsvalueskwarg before keying, an asymmetry that is now moot since the local step collapsed onto the central normalizer; ©shap_values(background=...), which keyed onstr(background)[:64]— two backgrounds differing only past character 64 of their printed repr collided outright; (d)learning_curve(train_sizes=[1])vs.learning_curve(train_sizes=[1.0])— sklearn reads an int array as an absolute sample count and a float array as a fraction of the training set, two different requests that Python's cross-type numeric equality (1 == 1.0) would otherwise key identically._cache_keynow converts anndarray/list/tuplekwarg (including nested ones) into a nested tuple of its own values, content-preserving with no rounding or truncation, before checking hashability; everyint/floatleaf also carries its own numeric kind through that normalization, so equal content keys equal only when the numeric kind matches too, closing (d). A value that is still unhashable after normalization (a dict, a custom object with no__hash__) gets a fresh, never-repeating key instead, so the call is always a genuine cache miss rather than a possible wrong hit, and — becauseself._cacheitself now refuses to store an entry keyed this way — repeated calls with the same reused unhashable value do not leak one throwaway cache entry per call either: a disclosed behavior change, but a bounded one, not an unbounded-growth trade. - Breaking:
discrimination_threshold(cv=<int>)now splits via sklearn's owncheck_cv(cv, y, classifier=True)convention — an unshuffledStratifiedKFold— instead of the hand-rolledKFold(shuffle=True, random_state=self._random_state or 0)(#211, N2, N3). The old splitter genuinely consumedrandom_state(reproducible only by theor 0default when unset), which made two long-standing spec claims — "discrimination_thresholdignoresrandom_state" and the matchingDiscriminationThresholdVisualizerentry — false; the new splitter has no seed to thread, restoring both to true, confirmed by a determinism pin (two sources built with differentrandom_statevalues now sweep to the identical frame). This moves the averaged per-threshold numbers for every integer-cv=call, since stratification changes which rows land in which fold: measured on a 120-row, 12-positive fixture (random_state=0,cv=5) thediscrimination_threshold(cv=5)frame's column sums movedprecision0.840187 → 0.676222,recall5.333333 → 5.133333,f11.302555 → 1.165420; no golden exercisescv=. A user-supplied splitter's.split()now also receivesy(previously.split(X)with noy, so a stratified splitter raisedTypeError: split() missing 1 required positional argument: 'y', N2) —discrimination_threshold(cv=StratifiedKFold(...))now works. A train fold left with only one class now emits aUserWarningnaming the fold and the missing class before the clone-and-fit step's own sklearn error; the routine, unrelated, test-fold-missing-a-class case is unchanged (still silently contributesprecision = recall = f1 = 0with a realqueue_rate).DiscriminationThresholdVisualizer(cv=...)inherits the fix by forwardingcv=unchanged; no code change was needed there. - Breaking:
discrimination_threshold_chart(compare=...)andDiscriminationThresholdVisualizer(compare=...)now render small multiples — oneConcatChartpanel per model, shared x/y scales, titled with the model name — instead of stacking every model's sweep into one panel (#213). The geometry moved, not just the annotation: the builder'sunpivotto long form namedmodelin neitherindex=nor the resolved metric columns, so polars dropped the column outright and the four metric polylines each traversed the threshold axis once per model — an interleaved zig-zag, not an overlay. Measured on the pinnedbinary_logisticfixture against aGaussianNBrival atn_thresholds=20, the old single panel held 160 rows over 80 distinct(threshold, metric)pairs (every pair duplicated); each of the two panels now holds 80 rows, one per pair. The F1-optimum label and thethreshold_linerule came from onearg_maxover that pooled frame and so reported whichever model won globally; every panel now computes them from its own model's sweep, because each panel is built by re-entering the single-model builder — measured, basemax F1 = 0.918 @ t=0.42and rivalmax F1 = 0.886 @ t=0.53where there used to be one label reading0.918 @ t=0.42. A per-model build failure re-raises prefixed with that model's name (compare={'alt': ...}: discrimination_threshold() is binary-classifier only; got 3 classes.). The single-model path is untouched and both single-model discrimination-threshold goldens are byte-identical; a new compare golden was added. - Breaking: One metric surface on
roc_chart/pr_chart/calibration_chart(#219, D4).annotate_auc/annotate_ap/annotate_briernow drive exactly one surface — the per-curve endpoint overlay. The chart title's metric suffix and the legend's(METRIC = x)rename both retire: every ROC chart is titled"ROC Curve", every PR chart"Precision–Recall Curve"and every calibration chart"Calibration Curve"(single-curve, per-class, averaged, compared and precomputed alike), and a legend entry is the bare class or model name ("1","macro","a") instead of"1 (AUC = 0.984)". This is the repo's own Schwabish T2 rule — a direct label replaces the legend's copy of the number — applied to the three curve families, and it is what makesannotate_*=Falsemean no metric anywhere: the title used to print one regardless of the flag. No metric value changes; only how many times each is printed. Measured metric text runs per chart across the eleven phase-10 goldens this moved:roc_chart_binaryandroc_chart_binary_annotate_auc3 → 1;roc_chart_multiclassandroc_chart_multiclass_annotate_auc6 → 3;roc_chart_compare_two_models4 → 2;pr_chart_binary,pr_chart_binary_annotate_apandpr_chart_binary_iso_lines3 → 1;pr_chart_multiclass_annotate_ap_iso6 → 3;pr_chart_multiclass_macro_average3 → 1;calibration_chart_binary2 → 1. Code readingchart._title.textfor a metric, or matching legend labels against the renamed values, is affected.calibration_chart's compared-source title guard is subsumed rather than lost — every calibration chart titles plainly now, and the per-model Brier still reaches the reader through the per-series overlay.mark_roc(annotate_auc=True)/mark_pr(annotate_ap=True)are unaffected: the direct-mark path was already a single surface, and its"{group}: AUC = 0.987"text and placement are byte-identical. - Breaking:
+ BrierLabel()on a frame with nobriercolumn now refuses (#219(3)). A reliability diagram's binned(mean_predicted, fraction_positive)points do not define a Brier score — integrating them yields a bin-level statistic that moves withn_bins=/strategy=— so the documented silent fallback that showed that statistic under theBrier =label is deleted, in favour of aValueErrornaming the missing column and the hazard.AUCLabel/APLabelare unaffected: the area under the drawn curve is their metric, so the composable path over arbitrary user data keeps integrating. Every ferrum-produced calibration frame carries the column, so no figure-function path is affected — only a hand-built frame composed with+ BrierLabel(). - Re-applying a metric label replaces it instead of overstriking (#219(2)).
roc_chart(...) + fm.AUCLabel()used to stack a second text layer holding the same string at the same coordinates, since the figure function already places one — visible only as slightly bolder glyphs, and measured on the calibration path as two identicalBrier = 0.056runs where there should be one. The new label now supersedes the existing one, so re-application is how a caller changesposition=/format=/prefix=on a figure's own label. The rendered output of a chart that composes a label exactly once is unchanged. - A cleared paint wins over the color channel (wave 6A, #110).
mark_line(stroke="none").encode(x=…, y=…, color="g")rendered byte-identically to the same chart without the clear, painting the categorical palette over it;mark_area(fill="none").encode(color="g")did the same with a fill. The clear now wins, so no stroke (or fill) is painted. The same shared resolver fixesbar,rect,arc,polygonandpointunder a color channel, andtextnow reaches it too:mark_text(fill="none").encode(color="g")painted the palette and now paints no glyphs.mark_label(fill="none"), which reads no color channel, likewise stops painting its text and leader lines inrgba(0,0,0,0.000); see Breaking for the byte-level consequences. An explicit transparent color (stroke="#00000000") is a color, not a clear, and still rendersrgba(0,0,0,0.000). - Interactive keyed transitions update the marks they name (wave 6A, #105). The WASM runtime computed each mark batch's instance range by counting nodes, which went wrong as soon as chrome shared the circle/rect instance buffers. Two public shapes were affected:
configure_grid(band_colors=…)(five band rects ahead of the bars, so bars reported instances0..4while occupying5..9) and plain.facet(col=…)(a strip-title rect after each panel's marks). A keyed transition on either wrote bar geometry onto grid band 0, silently. Ranges now come from the draw commands the loader already records with their true offsets. This reaches the widget through the rebuiltferrum_wasm_bg.wasmbundle that ships in the same wave. Theme(cull_threshold=)reaches an independent-x facet axis (wave 6A, #146). Under.facet(col=…).share_scale(x="independent")the per-panel x axis used the compile-time default gap, so the setting was inert there: a 60-category axis rendered 40 labels atcull_threshold0, 8 and 40 alike, where the shared-x facet rendered 120, 40 and 20. It now reads the theme like every other axis. The y axis was never affected.- An independent facet axis applies its temporal tick format, and
mark_textapplies its strftime pattern (wave 6A, #147).fm.Axis(label_format="%Y/%m/%d")under.share_scale(x="independent")rendered2020 2020 2020 2020while the shared axis rendered dates; it now renders dates, and the two paths agree.fm.Text("d", format="%Y/%m/%d", format_type="time")rendered2020-01-01instead of2020/01/01; it now renders the pattern. Both come from six format sites converging on one resolution; seeferrum-spec.md§3.7's 2026-09-22 note. pairplot(markers=[...])finally draws the requested glyphs, andShape/StrokeDash(scale=...)are no longer inert (wave 6B, #123).Shape(scale=...)is wired end to end, domain and range, mirroringColor's explicit-ordinal-domain/range path: before this,pairplot's documented seaborn-compatmarkers=argument (Shape(hue, scale={"type": "ordinal", "range": markers})under the hood) rendered the identical glyph set for every markers list, becausebuild_shape_scalenever readscaleat all.StrokeDash(scale=...)'s domain is wired the same way, reassigning which dash pattern each category gets. See Breaking, below, for the new construction-time refusals that ship alongside.- A conditional literal is typed by its channel (wave 6B, #128).
encode(size=sel.when(fm.value("red")).otherwise(fm.value(30)))serialized a color value under thesizechannel, and the interactive runtime repainted the mark's fill on selection; the same held onopacity,stroke_width,stroke_opacity,fill_opacity,angleandstroke_dash. The resolver read any string as a color before it looked at the channel. One channel-keyed table now decides:colortakes a color (unchanged, byte-identical on the wire), the six numeric channels take a finite number, andstroke_dashtakes a dash pattern through the same normalizer asmark_line(stroke_dash=), sofm.value("dashed"),fm.value("4,2")andfm.value([4, 2])now work there where they were refused with a color message or aTypeError. The rule is the same forfm.value,fm.when(...).then(...)andfm.param(...).ref(), andfm.valueaccepts a list or tuple. See Breaking for what now refuses. - The
min_extent=/max_extent=deprecation warning points at your line (wave 6B, #149).fm.Axis(min_extent=...)andfm.AxisConfig(min_extent=...)attributed theirDeprecationWarningto ferrum's own source, so a warning filter keyed on your module never matched it.AxisandAxisConfignow use the generated dataclass constructor instead of a 73-line hand-written mirror, and the warning is attributed to the caller;configure_axis(x=False)'s vestigial-flag warning is too. Three small by-design side effects: a config built byconfigure_axisshows the defaultx=True, y=Trueinrepr/==rather than the no-op flags you passed (the wire is unchanged, sinceto_dict()drops both),Axis().min_extentreads back an unset sentinel instead of raisingAttributeError, and__match_args__gains the two alias names. - Every transform repr shows what you built (wave 6B, #195).
repr()on 30 of the 35 transform classes left out constructor arguments:JoinAggregateprinted the literalJoinAggregate(...),AggregateOpprinted the Rust enum variant (fn='Variance'),Aggregateprinted an op count (ops=[2 ops]), andBin,Hex,Raster,Smooth,Swarmand the rest dropped between one and five arguments each,nameincluded. Every repr now renders every argument with its real value:AggregateOp("x", fn_="var", as_="v")printsfn_='variance',Aggregateprints itsAggregateOp(...)list, andReorderprintsfrom_=where it printedfrom=. Onlyrepr()text changes, so code that parses a transform's repr will see new text; SVG, interactive output and the wire are byte-identical. A repr is for reading, noteval(round-trip is a logged follow-up).ferrum-spec.md§3.5's 2026-09-23 note lists the 30 classes and the rendering rules. - Hand-built transform specs refuse an unknown vocabulary value on an empty batch too (wave 6B close, #165(3)).
kde,density_data,qq,top_k,pivot,data_window,data_stackandregression_datachecked theirkernel=/distribution=/method=/op=/offset=value only when a row reached the dispatch, so the same spec was refused on data and accepted on an empty batch. Every one now checks against its declared vocabulary on entry, andLinkage/ErrorExtentparse through the same typed vocabulary asHex/Raster/Bin. Only hand-built specs and the raw transform classes are affected; figure functions already passed declared values. - Numpy scalars and
Decimalare numbers everywhere a number is accepted (wave 6B close). One predicate,ferrum._validate.is_real_number, now answers "is this a real number" forInsetbounds (bare andpx()/norm()-wrapped, wherepx(np.int64(10))was refused while a barenp.int64was accepted),PaddingConfig,GridConfig/GridAxisConfigwidth/opacity,override(padding_*=), dash lengths (mark_line(stroke_dash=[np.int64(4), 2])escaped as a raw JSONTypeError),BreakAxis.gap, andtransform_filter/transform_imputeliterals (which now acceptDecimal).boolis never a number. Those configs now store the float they validated, soPaddingConfig(top=5).to_dict()gives{"top": 5.0, "auto": False}andpx(10)serializes10.0where the int went on the wire; rendered output is unchanged. dataclasses.replace(Axis(...), min_extent=...)attributes its deprecation warning to your line (wave 6B close, #149).replaceadded frames above the generated constructor, so the warning pointed atdataclasses.py;AxisandAxisConfignow compute the stack level from the frames.- Every numeric door answers "is this a number" the same way,
heatmap/AxisConfigstop leaking a raw serializationTypeError, andAxisConfiggainsDecimalsupport (wave 6C, #120(6)).heatmap(vmin=/vmax=/center=...)ranmath.isfiniteon the raw value, so a numpy integer orDecimalbound constructed and then leakedTypeError: Object of type int64/Decimal is not JSON serializableat render, andheatmap(vmax=True)rendered as1— it now refuses,"heatmap(vmax=...) must be a real number (int, float, numpy scalar, or Decimal), not bool; received True".AxisConfig(domain_min=/domain_max=...)(and, through it, everyoverride(<axis>_domain_min/max=...)leaf) had the same serialization leak and now, for the same reason, also acceptsDecimal(AxisConfig(domain_min=Decimal("2.5"))stores2.5, where it previously refused). Both, plusModelSource.embeddings(method="tsne", perplexity=...)andBreakAxis.gap's bounds (whose barefloat()let an oversized integer'sOverflowErrorand aDecimal("sNaN")'sValueErrorescape unlabeled), now share onecoerce_finite_real: refuse"{label} must be a real number (int, float, numpy scalar, or Decimal), not {type}; received {value!r}"for a non-number or"{label} must be a finite number a float can hold; received {value!r}"fornan/inf/an oversized value, else return a builtinint/float— closing the serialization leak for every accepted numpy/Decimalbound.coerce_positive_int(behindChart.facet(ncols=/nrows=...),Facet(columns=...)and the newcatplot(n_boot=...)door) accepts a numpy integer and refuses"{label} must be at most 2**53, the largest integer a float holds exactly; received {value!r}"above that ceiling; a count between2**32and2**53still passes Python and is refused by Rust'su32field at render, namingfacet:rather than the door (a residual, not fixed here). Message text moves with the unification: heatmap's finiteness refusal reads "must be a finite number a float can hold" (was "must be finite");AxisConfig's domain-bound refusal names the call-form door instead of the internal field label;Chart.facet's count refusal namesChart.facet(ncols=...)/Facet(columns=...)instead of the internal_Facetattribute. Separately,catplot(ci=/n_boot=...)gains real validation (ci="95"used to launder through a barefloat()and is now refused) and, on the five kinds that draw no interval (strip,swarm,box,violin,boxen) pluscount, a non-defaultci=/n_boot=— previously accepted and silently ignored — now refuses reading"catplot({name}={value!r}) is not supported with kind={kind!r} -- that kind draws no confidence interval, so {name}= would be ignored. Drop {name}=, or use one of the estimating kinds ('bar', 'point')."The defaults (ci=95,n_boot=1000) stay silent on every kind, and every already-accepted numeric shape's rendered output is unchanged. The mark-style doors and the remaining number literals join the same coercion. The numericmark_*style kwargs (size,opacity/alpha,stroke_width,corner_radius,font_size,dx,dy,angle,limit,band_size,arrow_size, on primitive and composite marks alike) andtransform_impute(value=...)now store a numpy scalar orDecimalas a builtin number, where it leakedTypeError: Object of type int64 is not JSON serializableatto_json()/render, and refuse a non-number or non-finite value in the door's voice,"mark_point(size=...) must be a real number (int, float, numpy scalar, or Decimal), not str; received 'a'", where the renderer refused it later with its own text (mark_style: invalid type: string "a", expected f64); a composite mark refuses when the chart is resolved, as its other style checks do.transform_filter's andtransform_impute(keyvals=...)'s number literals refuse through the same helper, reading"transform_filter: value for field 'x' must be a finite number a float can hold; received nan"(was"transform_filter: non-finite float nan not allowed for field 'x'; accepted: string, number, bool, or None") and"transform_impute: keyvals value for key 'x' must be a finite number a float can hold; received nan"(was"transform_impute: non-finite float nan not allowed in keyvals for key 'x'; accepted: string, number, or bool"), and now also refuse an integer a float cannot hold (10**400, previously emitted as a literal) andDecimal("sNaN")(previously a bareValueError). A dash length and a conditional numeric literal (fm.value(...)on a numeric channel) refuse10**400andDecimal("sNaN")in their existing refusal shapes instead of leaking a rawOverflowErroror an unlabeledValueError. The count predicate is renamedcoerce_positive_intand returns the builtinintevery door now stores, soChart.facet(ncols=np.int64(2))stores2. Seeferrum-spec.md's 2026-09-24 note. In the close, the unsigned-integer mark fieldlimit(published by the newferrum._core.mark_integer_kwargs()) takes integers only:mark_text(limit=2.5)andmark_text(limit=-1)refuse at construction,"mark_text(limit=...) must be a non-negative int, not float; received 2.5"/"mark_text(limit=...) must be >= 0; received -1", where they previously constructed and failed at render withmark_style: invalid type: floating point '2.5', expected usize; and a style kwarg the mark does not honor is refused as unknown before its value is judged, somark_point(corner_radius="x")raises the unknown-keywordTypeErrorinstead of"mark_point(corner_radius=...) must be a real number ...". - A conditional-collision refusal names both colliding declarations, and the layer door speaks in its own voice (wave 6C, #245(3)).
encode(),Chart.conditional(),Chart + ChartandChart.layer(Layer(encoding=...))'s one-conditional-per-wire-channel refusals used to report only that the wire channel already carried one —chart + chart's read"chart + chart: both sides declare a conditional on the 'color' wire channel; a channel can carry only one conditional after the marks merge onto one panel ...; ...", naming neither side — and the layer door additionally raised inencode()'s voice even though the caller never calledencode()("encode(fill=...) declares a conditional on the 'color' wire channel, which already carries one on this chart ...; a channel can carry only one conditional. Drop one of the two declarations."). All four now share one message builder,"{context}: {first} and {second} both declare a conditional on the '{wire}' wire channel{detail}; a channel can carry only one conditional. Drop one of the two declarations, or move one to a different channel.", naming the public entry that raised, the wire channel, and both declarations — anencode(<key>=...)orLayer(encoding={<key>: ...})parameter when the collision is against a same-call spelling, else the selection driving the conditional — so(a + b) + creads"chart + chart: selection 'b' and selection 'c' both declare a conditional on the 'color' wire channel; ...", andchart.layer(Layer(encoding={"fill": fm.Fill(..., condition=...)}))now reads"Chart.layer(): Layer(encoding={'fill': ...}) and selection 's1' both declare a conditional on the 'color' wire channel (fill carries its conditional onto color); ...". Message text only: which calls raise, and when, is unchanged. In the close, a declaration with no parameter spelling is named by its role as well as its selection, so a collision between two conditionals on one selection no longer reads"selection 's' and selection 's'": the sides read"the chart's existing conditional on selection 's'","this call's conditional on selection 's'"(Chart.conditional()), and"the left chart's conditional on selection 's'"/"the right chart's conditional on selection 's'"(Chart + Chart), and(a + b) + creads"chart + chart: the left chart's conditional on selection 'b' and the right chart's conditional on selection 'c' both declare ...". Facet(sort=)orders panels instead of warning, a malformed sort object refuses at construction everywheresort=is honored, and a hand-built spec carrying one refuses at render instead of rendering silently (wave 6C, #176(11), N3).Facet/FacetRow/FacetCol(sort=...)was accepted and downgraded to a "not yet honored; planned for a future Phase" warning, with no effect on panel order; it now accepts the same sort vocabulary the positional channels accept (a direction string, an explicit ordered list, or a{"field": ..., "op": ..., "order": ...}aggregate object) and orders the facet partition's values by reusing the ordinal domain's own sort resolution —FacetCol's value routes toFacetSpec.sort(the column/wrap strip's dimension) andFacetRow's torow_sort(the row-header strip's dimension) in grid mode, mirroringtitle/row_title's exact routing; a row-only facet lowering to wrap keeps its sort insort, the same way its title does. Separately, a sort-field object missing a string"field", carrying an unrecognized"op"/"order", or carrying"op"/"order"present as an explicitnull(as opposed to omitted, which defaults) used to construct silently and only warn at render with a fallback to insertion order ("sort spec could not be applied ..."); it now raisesValueErrorat construction naming the channel and the value, on every channel whose honored set includessort(X,Y,Color,Shape,StrokeDash,Facet,FacetRow,FacetCol) and onEncodingSpec. The render-time warning's malformed-object arm is deleted, since every construction route now refuses first — but a hand-builtChartSpec.from_jsonspec still bypasses those gates, so a malformed sort reaching render through a chart channel, a layer's own channel, or a facet'ssort/row_sortnow refuses withRenderError::SortSpecMalformed, reading verbatim"{location}: sort={value} is malformed ({reason})"(locationis the channel name,"layers[{i}].{channel}","facet.sort", or"facet.row_sort") instead of rendering silently; arow_sortset with norowdimension refuses the same way, with reason"the facet has no row dimension (row=) for row_sort to order"— unreachable through any Python door or legitimate merge sequence, since a grid-to-wrap redeclaration dropsrow_sortexactly as it already dropsrow_title. The warning's other arms (a well-formed sort that cannot be applied) are unchanged and now cover the facet channels too, through their ownRenderWarning::FacetSortSpecIgnored("facet sort spec could not be applied ({reason}); panels fall back to insertion order") —Facet(sort=...)previously dropped an inapplicable-but-well-formed sort with no warning at all, whereX(sort=...)already warned for the identical value, and the two now agree. Every validX(sort=...)form still constructs and serializes exactly as before, and a facet with nosort=declared omitssort/row_sortfrom the wire, byte-identical to before this fix.Chart.facet()gainssort=androw_sort=on the same contract, routed like itstitle=/row_title=:row_sort=on a single-dimension declaration refuses asrow_title=does, and a malformed sort-field object refuses at the call namingChart.facet(sort=...)orChart.facet(row_sort=...).- A facet channel merges into the existing facet instead of silently dropping it, and an empty facet title renders the bare value (wave 6C, #176(10a)(10b), N5).
Chart.encode()'s facet block re-synthesized_facetfrom the facet channels on every call, carrying forward onlyncols/nrowsfrom a prior.facet()call and silently droppingtitle,row_title,resolveand — most seriously — the other dimension of an existing grid facet:.facet(row="h", col="g")followed byencode(facet_col=fm.FacetCol("k"))silently downgraded the chart to a wrap facet on"k", dropping the row._Facet.merged_withis now the one writerChart.encode()'s facet block,Chart.facet()(every arity), andChart.share_scale()all call: what a call states wins, what it does not mention survives, andencode()reads the declaration kind from the facet channels stated in that call only, never from a stale channel_encodingcarried from an earlier.encode()call. Mode transitions are orientation-aware:FacetCol/.facet(col=...)orFacetRow/.facet(row=...)onto an existing grid replaces only that dimension; onto an existing single-dimension facet, a declaration of the SAME orientation replaces the field and stays a wrap (FacetRow('g')thenFacetRow('h')is a row facet on'h', not a diagonalrow='h', col='g'grid), while a declaration of the OTHER orientation promotes to a grid that keeps the prior field — and its title — on its own axis:.facet(row='h', title='RT').facet(col='k')now reads'RT: c'/'RT: d'on the ROW strip and a bare column strip fork, where it previously mislabeled the column strip'RT: e'/'RT: f'and left the row strip untitled. A wrap-only declaration (Facet/.facet(field=...)) onto a single-dimension facet now also carrieswrap_orient, which it has no way to state itself:.facet(col='g').encode(facet=Facet('k'))keeps the side-by-sidencolsa bare reset toNoneused to collapse to a vertical stack.encode(facet=...)onto an existing grid is a genuine contradiction — it cannot state which dimension to keep — and raisesValueErrornaming the door and the prior grid instead of silently downgrading it;.facet(field=...)is the redeclaration door that refusal names, and, per the same carry rule as every other door, keepstitle/ncols/nrows/resolvea prior call set and this one does not restate, replacing only the grid'srow/colwith a wrap on the stated field (row_titlehas no home in wrap mode and is dropped). Charts with no prior facet state are byte-identical. Separately,Facet/FacetRow/FacetCol(title=...)andChart.facet(title=/row_title=...)accepted""or whitespace-only and rendered": p"; the strip now renders the bare value on every strip kind, as an unset title does, while a non-blank title — even one padded with whitespace — renders verbatim. Seeferrum-spec.md's 2026-09-24 note. ShapePaletteOverflowed,StrokeDashPaletteOverflowedandUnsupportedOpacityScalefire once per render,ColorPaletteOverflowedonce per panel, and the opacity warning names the fallback it actually took (wave 6C, #120(7), N2). (UnsupportedOpacityScaleitself is superseded above: the opacity family now takesLog/Pow/Sqrtscales for real, so the warning this bullet describes no longer exists.) Auxiliary (non-positional) scale resolution runs through two passes on everyto_svg(): a provisional pre-pass, whose resolved scales feed axis tick/label sizing and the chart-level legend build (a real, still-necessary call, not dead code), and a per-panel pass, once for each panel a chart actually has. Both passes push every auxiliary warning unconditionally, so each one used to reach the caller once per pass.ShapePaletteOverflowed,StrokeDashPaletteOverflowedandUnsupportedOpacityScaleare whole-chart facts — every panel resolves these three channels against the same shared domain and so re-derives byte-identical text — so two separate repetitions are now collapsed: the provisional pass's copy of each is superseded once a real panel restates it (as before), and, since a faceted chart's own panel loop pushes the identical text once per panel, every repeat within that loop beyond the first is now collapsed too. A single-panel chart records each exactly once (previously twice, once per pass); a faceted chart with N panels also records each exactly once (previously N, or N+1 counting the provisional copy).ColorPaletteOverflowedonly gets the first half of this: an independently-resolved color scale can legitimately overflow its palette differently per panel, so its provisional-pass copy — whose scale is never rendered — is dropped, but its per-panel copies are deliberately NOT collapsed; a chart with N panels still records it N times, where before it also carried one extra provisional-pass copy on top. (UnknownColorScheme,GradientTooFewStopsandSortSpecIgnoredwere already superseded across the provisional/panel-pass boundary before this fix and are unaffected by either change in this entry; they are not collapsed across a faceted panel loop.)sizepushes noRenderWarningand is unaffected. Separately,UnsupportedOpacityScalealways claimed the opacity channel fell back to "the default linear resolution", even when a constantfill_opacity/stroke_opacitycolumn under a non-Linearscale=takes the literal-alpha path instead (no scale built, each row keeps its own value) — the warning now carries a typedfallback(Linear/LiteralAlpha) decided at the same early return that picks the behavior, so that case reads"... the column is constant, so its values were used as literal alphas instead of a scale"in place of the false linear claim.opacityitself, which never takes the literal-alpha path, is unaffected; rendered output (includingfill-opacity) is byte-identical, only the message text and count change. Seeferrum-spec.md's 2026-09-25 note.- A layered chart refuses a shared-axis column it cannot place, instead of drawing it at arbitrary positions (wave 6C, #120(9), N1). A layer whose shared continuous axis column is not numeric or temporal —
fm.layer(point(y="y"), line(y="s"))withsa string column — used to render silently, withs's values placed at arbitrary heights on the numeric axis the other layer drew. One predicate, asked before the read, now refuses on every route that merges layers onto one shared axis —fm.layer(...)'s static composite-overlay route and+/.interactive()'s merged-flat route — with the textlayer {i}: column '{field}' ({dtype}) cannot be drawn on the shared {channel} axis, which is continuous — a layered chart (fm.layer(...) / chart + chart) merges its members onto one panel. Cast the column, or give the layer its own scale with resolve={"{channel}": "independent"}.The establishing member — layer 0,fm.layer(...)'s first argument or+'s left-hand chart — decides whether the shared axis is continuous or ordinal, sofm.layer(numeric, categorical)refuses naming layer 1 whilefm.layer(categorical, numeric)renders (the later numeric column bands onto the ordinal ladder instead).fm.layer(...)(including nested inside another composite) wraps the text in the crate's general composite envelope,composite scale resolution failed: failed to resolve shared {channel} domain for field '{field}':;+and.interactive()raise the bare text. An absent field and a layer underresolve={"y": "independent"}are unaffected either way. Seeferrum-spec.md's 2026-09-25 note. ScaleSpec's "type" tag set now has one published home, and one hand-copy of its tag match is retired with it (wave 6C, #159(1)(2)(4)(5)(6)).ScaleSpec::TAGS— the image of a new, exhaustively-matchedScaleSpec::tag()over every variant, kept in step with it by a Rust test — and its temporal subset are published to Python (scale_type_tags(),scale_temporal_type_tags()) on thescale_accepted_keysprecedent, so_override_apply.py's_SCALE_TYPE_TAGSandencoding/_scale.py's_TEMPORAL_SCALE_TYPEShold no Python literal. Every override refusal text and the accepted-key filtering behind it are unchanged. One collateral fix ships with the publication:render/scale_resolve/auxiliary.rs'sscale_spec_kind_name— a fourth hand-copy of the tag match, used only to name the dropped scale kind in theUnsupportedOpacityScalewarning when an opacity-family channel'sscale=is not linear — now delegates toScaleSpec::tag()instead of hand-spelling its own arms. ItsBinOrdinalarm had drifted to"bin_ordinal"(underscore), disagreeing with the wire tag"bin-ordinal"(hyphen) every other tag-producing site in the crate uses, with no test pinning the old spelling; aBinOrdinalScaleon an opacity channel now warns"... bin-ordinal scale is not supported on opacity-family channels ..."where it previously readbin_ordinal. Every other scale kind's name in this warning is unchanged (log,pow,sqrt, etc. were already spelled identically both ways). Seeferrum-spec.md's 2026-09-24 note.padding.autodecides per-axis infeasibility before assembling tick contributions, and never charges an explicit side's own extras against its viewport cap (wave 6C, #139(2)(3)(4)).auto=Falseoutput stays byte-identical. Atauto=True, whether an axis's title is too wide for the viewport to ever fully contain is now decided from title measurement and viewport alone, before that axis's edge-tick-label contribution is assembled, so a suppressed axis's tick contribution is zeroed at the same point its title's own contribution is, rather than folded in first and only zeroed afterward — the title pass then solves against that already-suppressed geometry, the base it actually ships. Separately, the twocap_auto_contributioncalls now scale down only the contribution auto itself proposed: an explicitly-set side's own extra is zeroed before the cap runs, so the samebase_padding_insetsexplicit-side rule the rest ofautoalready honors also governs what the capped regime scales. Seeferrum-spec.md's 2026-09-25 note.BreakAxisIneffectivenames its domain low to high, even on a reversed axis (wave 6C, N4). The warning's(start, end)pair used to echo the scale's own declared order, so a reversed y domain of[100, 10]read"no gap overlaps the axis domain (100, 10)"; it now always reads low to high,"...(10, 100)". Message text only, no rendered geometry moves. Seeferrum-spec.md's 2026-09-25 note.Utf8View/LargeUtf8string columns render likeUtf8instead of failing internally (wave 6C, #167(1)). A string column arriving in either of Arrow's newer string encodings — common from a recent pyarrow or polars source — now normalizes through an Arrow cast toUtf8and renders byte-identically to the same data carried as plainUtf8. A column the cast cannot complete now refuses with a typed error naming the column, instead of failing internally.Utf8columns are unaffected. Seeferrum-spec.md's 2026-09-25 note.- Interactive dashes match static output (wave 6C, F19/F19b).
mark_point(stroke_dash="dashed")and its named-linetype siblings ("dotted","dashdot","longdash") rendered dashed in static SVG and solid in.interactive(); aStrokeDashconditional's palette pattern (e.g.[6, 3]) rendered as a concentric inset ring instead of a dash around the perimeter. Both are fixed by moving the stroke-dash pattern table to one home,ferrum_scene::DASH_PALETTE, which the SVG path, the GPU packed-instance path, and the WASM shaders all read (rather than each holding a copy), and by measuring dash phase along the stroke in both WASM shaders — a circle by arc length, a rect by outline position — instead of by distance from the center or edge. The four named linetypes are new palette entries (indices 4–7, after the three pre-existing patterns), so a categoricalStrokeDashscale's cycling assignment is unchanged. A pattern outside the palette still renders solid on both outputs. Static SVG is byte-identical; the committed WASM bundle changes, since this is the fix. Separately, the packed (≥1000-mark) interactive path's own pattern-matching used to truncate a pattern's components to integers before comparing, so a non-integer-valued pattern like[6.5, 3.5]used to truncate-match the long-dash index there; it now matches exactly, like the unpacked interactive path always did, and maps to solid instead.StrokeDash(scale=..., range=...)'s refusal text also changes, in both languages, independently: Rust'sStrokeDashRangeUnsupportedmessage goes from calling the scale's output "the fixed 4-slot dash palette" to "a fixed set of 4 palette patterns" (the count now read fromferrum_scene::STROKE_DASH_LEGACY_SLOTSrather than the growingDASH_PALETTElength); Python'sStrokeDash._validaterefusal (src/ferrum/encoding/appearance.py) goes from the same old phrasing, "the fixed 4-slot GPU palette", to "a fixed set of palette patterns" — with no slot count at all, since Python must not carry its own copy of that Rust constant. Separately, the Rust pin on the non-palette fallback changes scope from an "unknown" pattern to a pattern outside the palette: the four named linetypes (dashed,dotted,dashdot,longdash) now render as dashes on interactive instance marks, and only a pattern outside the palette still falls back to solid.stroke_dash_index_unknown_pattern_gives_solidinferrum-wasmis retired, and the pin now lives with the palette asnonpalette_pattern_maps_to_solidincrates/ferrum-scene/src/dash.rs. Seeferrum-spec.md's 2026-09-26 note. interpolate=refuses in the shared vocabulary shape at declaration and at render (wave 6C). Theinterpolate=vocabulary moves onto the shared Rust vocabulary API, and both of its refusals speak that API's shape. Rust's render-time refusal of a hand-built spec readinterpolate='cubic' is not supported; accepted values are: linear|step|step-before|step-after|monotone|basis|cardinaland now readsunknown interpolate 'cubic'; expected linear|step|step-before|step-after|monotone|basis|cardinal. Themark_line/mark_area/mark_ribbondeclaration refusal readmark_line: interpolate must be one of ['basis', 'cardinal', 'linear', 'monotone', 'step', 'step-after', 'step-before']; got 'cubic'and now readsmark_line: unknown interpolate 'cubic'; expected linear|step|step-before|step-after|monotone|basis|cardinal, the Rust text under the calling door's name, listed in the order Rust publishes it throughferrum._core.interpolate_accepted_values().x_estimator='s Python refusal keeps itsmust be one ofshape.- An explicit range-only
FillOpacity/StrokeOpacityscale over a constant column is honored (wave 7, #108).encode(fill_opacity=fm.FillOpacity("c", scale=fm.LinearScale(range=[0.2, 0.8])))over a constantccolumn renderedfill-opacity="0.3"(the column's own literal value, ignoring the range) and now rendersfill-opacity="0.5", the clamped range's midpoint, through the same degenerate-domain rule an explicitdomain=already honored (GH #104). A range of[-1, 2]clamps to[0, 1]first and so also resolves to0.5. Unchanged byte-identically: a range-lessLinearScale(); a non-constant column; a constant-per-panel-but-varying-across-panels faceted column; an explicitdomain=; theopacitychannel. (no scale=anda non-Linear scale=are superseded below: a constant column now maps to the range midpoint on every scale type, including noscale=at all, rather than keeping its literal-alpha value.) Seeferrum-spec.md's 2026-10-01 note. mark_swarm(size=)is the dot's drawn diameter, and placed centres sitsize + spacingapart (wave 7, #161). Before:size=reached only the placement transform, so every swarm dot drew at the theme's default point area of 36 px², radiussqrt(36/π) ≈ 3.385px, whateversize=said, and placement kept neighbouring centres at least2·(size + spacing)px apart, twice the documented "diametersize, edge gapspacing". After: the swarm's point layer draws areaπ·(size/2)², radiussize/2(the defaultsize=4draws r=2,size=20draws r=10), and the collision threshold is a centre distance ofsize + spacingpx, sosizeis the diameter andspacingthe edge gap, as documented (user ruling 2026-10-01). Every swarm's spread roughly halves. Routes:mark_swarm,catplot(kind="swarm")(always the defaultsize=4, so r=2) and the boxplot-plus-swarm composite. Disclosed:Theme(point_size=p)no longer reaches swarm dots. It used to set their radius tosqrt(p/π); the swarm's own layer size now outranks the theme, as it does for every composite that sets one. Unchanged: an encodedsize=channel andlayer_kwargs={"point": {"size": a}}still outrank the swarm's size; hue-dodge sub-bands staysize + spacingwide;shap_beeswarm(aJitter, not aSwarm) is byte-identical. Disclosed: thefm.Swarmtransform feeding a sizelessmark_pointnow drawspoint_size-wide dots.fm.Chart(df).transform(fm.Swarm("g", "y")).mark_point()packed its dotspoint_sizepx apart (then default 5) but drew each at the theme radius (≈3.385 px, a 6.77 px dot), so neighbours overlapped; a point layer fed by aSwarmthat sets nosize=of its own and encodes nosizenow draws at the placement diameter, radiuspoint_size/2(2 px at the defaultpoint_size=4, see Breaking changes), so placed and drawn diameters agree on every route. An own constantsize=or an encodedsizestill wins. The gallery imagesmark_swarm.png,catplot_swarm.pngandcomp_boxplot_swarm.pngwere regenerated. Seeferrum-spec.md's 2026-10-01 notes undermark_swarm.mark_swarmpacks its placement in rendered pixels, through the panel's actual resolved scale, instead of a pre-layout estimate (wave 7, #161). The minimum rendered centre-to-centre distance between adjacent placed dots is now exactlysize + spacingpx in every layout, not only the plain default the estimate happened to approximate well — a title or facet strip shrinking the plot area, a facet's shared y domain, an explicit y domain wider than the data, and a log y scale no longer squeeze dots closer together thansize + spacing, and a dodged category's dodge groups now pack against one shared set of placed dots instead of each packing independently, so their dots no longer overlap each other. A dodged swarm's dots now draw in input row order rather than grouped by dodge value, changing z-order where dots overlap in screen space.fm.Swarm's transform output is placeholder-only until render: itsswarm_xcolumn is always null, and the cross-axis offset column is a0.0placeholder the renderer replaces with the real packed offset. Swarm placement now also survives a later row-preserving or row-dropping transform (transform_filter,transform_calculate,transform_sample) placed after theSwarmtransform in the same chain — the renderer still finds theSwarmin the layer's data lineage and packs the rows it actually holds. If a later transform instead drops the placement column it needs (for example anAggregatethat collapses rows), the renderer warns once per chart rather than silently leaving dots stacked at the placeholder offset:swarm could not be applied (column '__pos_x_offset__' that Swarm(category='{c}', value='{v}') places its dots by is not in the layer's data; a later transform dropped it); marks were not offset. Seeferrum-spec.md's 2026-10-01 note.- A secondary y axis's gridlines are opt-in (wave 7, #141). A dual-axis chart (
fm.SecondaryY, orLayerChart(resolve={"y": "independent"})) draws no gridlines for its secondary axis by default, even when the chart's theme or a sharedconfigure_axis(grid=True)/configure_grid(y=True)turns gridlines on for the primary axes. Before:axis_y2=AxisConfig(grid=True), a secondary layer's ownfm.Axis(grid=True), and theaxis_y2.grid_color/grid_dash/grid_width/grid_opacitystyling were all accepted and drew nothing (the config manifest listedaxis_y2.gridas unhonored). After: ask for them withaxis_y2=AxisConfig(grid=True), or per-channel withfm.SecondaryY(..., axis=fm.Axis(grid=True)), and they draw at the secondary axis's own tick positions, after the primary's, styled per-channelgrid_*>axis_y2.grid_*> theme major (which carries a flatconfigure_grid(color=, width=, dash=, opacity=)). Band colors stay primary-only, secondary minor gridlines draw only whenTheme(grid_minor=True)and the secondary's own show flag are both on, and a primary-ybreak_axisnever remaps them, matching the secondary axis itself. With three or more stacked secondaries, each one's show flag is independent under the per-channelaxis=fm.Axis(grid=True)form; the chart-levelaxis_y2=AxisConfig(grid=True)broadcasts to every stacked secondary at once, and a per-channelaxis=fm.Axis(grid=False)on one of them overrides that broadcast. There is noconfigure_grid(y2=...)slot (user ruling 2026-10-01). Defaults are unchanged: every existing dual-axis chart without a grid request renders byte-identically, static and interactive. The only output that moves is the layout JSON, where a secondary axis'sshow_gridnow readsfalsewhere it readtrue(it followed the theme's grid default, and nothing read it). Seeferrum-spec.md's 2026-10-01 note underSecondaryYanddesign-docs/superpowers/specs/2026-07-11-secondary-y-axis-design.md's 2026-10-01 amendment. - A line's encoded
size=draws a per-vertex width, a taper, on every backend (wave 7, #116). Before:mark_line().encode(size="v")andrelplot(kind="line", size="v")resolved a size scale and drew a circle size legend, but the line ignored it and drew one constant width (the theme'sline_stroke_width, 1.5 px by default), so the legend described widths the line did not have. After: each vertex draws the width of a dot at the same value on the shared size scale,w(v) = 2*sqrt(size_scale(v)/pi), the point diameter (user rulings 2026-10-01: a taper within each series, not one width per group; no new theme keys). The default size range of 4 to 36 px² gives widths of about 2.26 to 6.77 px, andSize(scale=fm.LinearScale(range=[a, b]))stays in area units for lines too, so a point and a line layered on one size field share one scale and one truthful legend.color/detail/categoricalstroke_dashgroups each taper on their own; a null or non-finite size row takes the group's constant width; a stepinterpolate=holds a row's width across its step run, and a curved one (monotone, basis, cardinal, …) gives each command endpoint its row's width. A line cut by a primary-ybreak_axiskeeps its taper, each piece carrying the source widths at kept vertices and the interpolated width at each cut. Astroke_dashon a tapered line dashes along the tapered stroke on both backends (user ruling 2026-10-01). Static export draws one filled outline (see the static-export bullet below). Interactive:.interactive()draws the taper atwidths × magCSS px measured perpendicular to the on-screen centerline, at rest, under wheel zoom and under ansx ≠ sybrush rescale; dashes keep their interpolated widths; hover hit-testing uses the line's widest vertex. Legend: circles → line swatches. When every layer that draws the size field is a line (counting only marks that drawsize: point, line, text), each size-legend entry is a line swatch whose stroke width is the entry's dot diameter2r, and a composite decides across its leaves on both the overlay and the shared-band legend routes; a mixed point-and-line legend keeps circles. A sized line refuses a size value that maps to no positive width, e.g.mark_line: size 'v' value 0 maps to area 0 on the size scale, which gives no positive line width. Every width along a line must be positive; give the size scale a range above 0.Unchanged byte-identically: every unsized line on every backend (the scene JSON gains awidthslist on sized line nodes only, and legend entries asymbol_line_widthon line swatches only), and area outlines, ribbons, rules, segments, ticks and geoshape strokes. Seeferrum-spec.md's 2026-10-01 note under theSizechannel. mark_line(size=N)draws a constant width2*sqrt(N/pi)(wave 7, #116). The released version left a constantsize=inert onmark_line, rendering the theme's stroke width (1.5 px by default) regardless of its value; a positive constantsize=now sets the line's width to twice the radius of a dot of that area, the same area-to-radius mappingmark_point(size=N)already used:mark_line(size=36)drew a 1.5 px line and now drawsstroke-width="6.77"(user ruling 2026-10-01). The line carries no per-vertexwidthsand keeps its plain stroked geometry. An encodedsize=outranks the constant, as on points.- A conditional
sizeon a line is honored interactively, on the lines that declared it (wave 7, #116). Before:mark_line().encode(size=fm.when(sel).then(a).otherwise(b))reached the scene, but the interactive runtime applied size conditionals only to point and rect instances, so the line stayed at its base width on every selection. After: each selection change re-tessellates the line so every vertex draws2*sqrt(area/pi)of its own row's active branch (user ruling 2026-10-03), and hover hit-testing follows the restyled width. Static export keeps drawing the base width, as it does for a point's conditional size. Scope (user ruling 2026-10-03): a conditional reaches exactly the layers its chart's own field encodings reach, and is decided once when the spec is built, so it does not depend on the order or the verbs the layers arrived by. A conditional declared on one operand of a+chain (and so on onefm.layer/LayerChartmember) or on onefm.Layer's own encoding restyles, and has its branches checked on, only the lines of those layers; a conditional declared on a chart as a whole, including on a composite such asmark_line(point=True)and on the host ofChart.layer()orchart + fm.SecondaryY(...), reaches every layer, lines included, and every layer attached to that host later, matching how a chart-level fieldsizeis inherited. So.layer(a).layer(b)scopes like.layer(a, b), andmark_line().encode(size=fm.when(...)).layer(fm.Layer(mark="line"))restyles both lines. Points and rects keep the existing chart-wide behavior. So(mark_point().encode(size=fm.when(sel).then(100).otherwise(0)) + mark_line())renders, with the plain line neither restyled nor refused. A line's own conditional whose branch gives no positive width refuses at render, statically too:mark_line: size=fm.when(...) on selection 's' has a branch of size 0, which gives no positive line width. Every width along a line must be positive; give every branch a size above 0.; a line's own conditionalsizeplusstroke_widthfalls under the width-conflict refusal (Breaking changes), its size rendered assize=fm.when(...). On the wire eachChartSpec.conditionalsentry gains an optionallayerslist naming the layers that declared it (absent means the whole chart, so every existing spec is unchanged); a hand-built list naming a layer the chart lacks refuses withconditionals[0].layers names layer 2, but the chart has 2 layer(s); name only the layers that declared the conditional. - A malformed tapered line refuses instead of drawing, and
loadScenethrows on one (wave 7, #116). A line node'swidthsmust align one per vertex, be finite and above 0, and belong to an open path; the line mark never writes anything else, so this guards a hand-edited or corrupted scene. Static export raisesValueError(mark_line: the tapered line cannot be drawn: tapered stroke has 3 widths for 4 vertices; it needs one width per vertex, and likewise for a width that is not finite and above 0 or a closed path). The interactive runtime'sloadScenenow throws the same text through its typed render error rather than drawing; it also throws on per-vertex selection rows that do not align with the line (... tapered stroke has 3 vertex rows for 4 vertices; it needs one row per vertex). Before, no scene node carried per-vertex widths, soloadScenehad nothing of this kind to refuse. - A size legend is drawn only for a field some layer actually draws (wave 7, #116). Before: a chart whose only
size-bound layers never draw size still drew a circle size legend, for marks that ignored it: a lonemark_bar,mark_area,mark_rule,mark_tickormark_rectwith an encodedsize, and amark_line(stroke_width=...)under an inheritedsize. Astroke_width=line beside a sized rule drew line swatches at widths nothing drew. After: who draws a size field is decided after a line's own width precedence, once, for every legend route (a single chart, an overlay of composite leaves, and a shared figure-level legend band), so each of those charts draws no size legend. A size legend beside a sized point or a line that does draw the size is unchanged, and on a shared band the size block comes from the first leaf that draws it. - A line whose
sizechannel is encoded draws as a filled outline in static SVG/PNG/PDF export (wave 7, #116).mark_line().encode(size=...)now draws its per-vertex taper in static export, not only interactively: a line that carries per-vertexwidths— an encodedsize=; a constantsize=Ndraws nowidthsand keeps its plain stroked geometry, disclosed separately above — emits one filled outline<path>in place of its stroked<polyline>/<path>, whose half-thickness at every vertex equalsw/2, the perpendicular offset from the centerline (exact on linear and step families; measured at each curve command's endpoint on monotone/basis/cardinal, which are flattened to a fixed subdivision before outlining).fillis the stroke color (carrying anyopacity=in its alpha, as a stroke color always does);stroke="none"; the outline never carriesstroke-width,stroke-dasharray, orstroke-opacity. With nostroke_join=set, a tapered line joins with bevel, not SVG's own untapered-line miter default — an encodedsize=andstroke_width=disagree on their default join; a constantsize=keeps the miter default, likestroke_width=. Caps and joins otherwise followstroke_cap/stroke_joinexactly as before (butt/round/square; bevel/round/miter, miter beveling past the SVG default limit of 4), each baked into the outline's filled geometry instead of an SVG stroke attribute. Astroke_dashon a tapered line dashes the outline itself: the pattern lays along the centerline's arc length the same waystroke-dasharraywould, but each on-piece is its own filled ring with width interpolated at its cut points — a tapered dashed line never carriesstroke-dasharray. A zero-length on-dash (e.g.stroke_dash=[0, 6]) draws a dot at each on-position under a round or square cap, and nothing under a butt cap, on both backends, matching a constant-width SVG stroke with the same dash and cap: a disk of the line's width there forround, a square turned to the line's direction forsquare. Before, a tapered line drew nothing at a zero-length dash under every cap. Self-overlapping geometry (a hairpin, a self-crossing series) paints its overlap once, at the drawn opacity, never doubled. An unsized line is byte-identical to its pre-fix render on every export. Disclosed:mark_line(stroke_join="bevel")paints the identical outline geometry as the default (unset) join on a tapered line, but its SVG differs by an inert<g stroke-linejoin="bevel">wrapper the outline's filled geometry never reads. Seeferrum-spec.md's 2026-10-01 note. mark_violinwarns when an inner mark is not dodged per hue,inner="none"is now a real accepted value, and the warning names the door actually called (wave 6C, #176(7)).mark_violin(inner=...)withinnerother than"none"/Noneunder a hue split (color=distinct from the categorical axis) previously rendered its inner mark at each category's own position, overshooting each narrower per-hue violin body, with no diagnostic. It now warns once each time the chart is resolved (everyto_json()and every render), attributed to the caller's own line —"mark_violin(inner=...): inner marks are drawn at each category's center and are not dodged per hue group"— until a per-hue quartile band is implemented. No warning fires without a hue split, or wheninneris"none"/None; the warning is not deduplicated across renders, so a secondto_svg()/to_png()call on the same chart warns again. No rendered geometry changes. Separately,inner="none"— the spelling the docstring always documented — is now genuinely accepted: it previously raisedValueError, since only the Python valueNonewas accepted for "no inner mark";Nonestill works too, for every existing call site.catplot(kind="violin", hue=...)voices the hue-inner warning as"catplot(kind='violin'): inner marks are drawn at each category's center and are not dodged per hue group; use Chart.mark_violin(inner=\"none\") to drop the inner mark"instead of namingmark_violin, sincecatplotfixesinner="box"itself and has noinner=of its own to point a caller at. A badinner=value's refusal text changes with the vocabulary: it now lists['box', 'none', 'point', 'quartile']rather than['None', 'box', 'point', 'quartile']. Seeferrum-spec.md's 2026-09-26 note.heatmap(square=True)draws square cells at the chart's normal or caller-set size, for 0, 1 and n rows. Before:square=Trueset width and height to 30 px times the larger of the row and column counts, a viewport too small to fit the theme's own padding at any small shape. At 1 column it refused outright (layout failed: padding left=16 exceeds viewport dimension 30); at 3x3 it rendered no cells and warned"panel 0 collapsed to zero size and was not drawn"and"panel 0 is too small to render and was left empty"; larger shapes rendered without warnings but with non-square cells (10x10: 16.2 x 20.3 px), since axis labels, the title and the colorbar were subtracted from the viewport the 30 px rule computed. After:square=TrueappliesCoordFixed(ratio=columns drawn / rows drawn)to the plot area and sets no viewport at all, so a square heatmap is the same size as the same call withsquare=False, a caller's ownwidth=/height=(viaproperties=or.properties()) is honored with square cells inside it, and nothing refuses or collapses. The cell grid counts the DRAWN bands —mask=shrinks it to the kept cells, duplicate row labels collapse to one band, a null row label counts as one — so a zero-row table draws its (square) empty panel instead of refusing. A mask that keeps no cell (an all-hidden boolean mask, or anymask=on a zero-row table) used to raise an untypedpolars.exceptions.ColumnNotFoundError("column" not found) undersquare=Trueand a typedValueError: unknown column 'column' referenced by an encodingundersquare=False; it now draws the same empty-panel frame and warns once, like the unmasked zero-row case.square=Falseis otherwise unaffected. Seeferrum-spec.md's 2026-10-26 note.- A later layer's panel-scoped coord (
heatmap(square=True)'s ownCoordFixedincluded) refuses the same way on every layering door,fm.layer(...).to_svg()included. Before:points + heatmap(square=True)and its.interactive()twin already refused, but with an internallayer 1: fm.CoordFixed declares ...message naming a coord the caller never wrote;fm.layer(heatmap(square=True), points)ran no such check at all and silently drewpoints's marks off the heatmap's cells (and the reverse order drew the heatmap's cells smaller than the points' own span), with no warning either way. After:chart + chartand.interactive()refuse a non-first member's panel-scoped coord in the voice of the call that built the layer, e.g.heatmap: its coord declares a fixed aspect ratio (fm.CoordFixed(ratio=...)), which belongs to the panel every layer shares — ...;fm.layer(...).to_svg()refuses the same way, with the member's own overlay position still naming it,layer 1: heatmap: its coord declares ....resolve={"y": "independent"}refuses a caller-written panel-scoped coord too (layer 1: fm.CoordFixed declares ...), but a square heatmap placed there is refused earlier, as a member chart that "contributes 2 y-bearing layers" — a heatmap is never voiced on that route. A member whose coord equals the first member's declares nothing new and renders, on every route. A square heatmap placed FIRST now also carries its fixed aspect to the overlay's shared plot area onfm.layer(...)'s static route, so every other member's marks land on its cells instead of a plain, unaspected rect intersection. Seeferrum-spec.md's 2026-10-26 note. - A jittered or dodged mark no longer vanishes off its own axis. A data-space
Jitteror a continuousDodgemoved a row'sx/yafter the axis had already resolved its domain from the unadjusted rows, so a jittered or dodged row that landed outside that domain was silently dropped — the same seeded two-row strip plot drew anywhere from 0 to 2 of its 2 points depending only on the seed. The axis now previews the adjustment's own drawn output the same way it already did forStack, so aJitter/Dodge-adjusted axis widens to cover everything the chart draws without widening past it — aDodgegroup absent at a row's extreme x no longer pulls the domain out to that row's own undrawn position — on every route (flat, layered, composite, faceted,CoordFlip,.interactive()); an explicit caller domain still wins.Stack, a span-branchDodge(a dodged histogram) and an ordinalJitter/Dodge(a categorical axis's own pixel offset) are unaffected and render byte-identically. Seeferrum-spec.md's 2026-10-26 note. - An all-null facet field renders and warns, instead of refusing.
.facet("f")over a column whose every value is null used to refuse outright (facet: no usable values found for field 'f'); it now takes the existing null-drop rule to its own limit — an empty frame, no facet panel, and a warning naming the full dropped-row count — the same as it already does for one null row among others. Grid mode takes the same route for an all-null row or column field. Separately, a facet field of Utf8, Categorical, Int, UInt, Float, Boolean or a dtype-less all-null column used to refuse"facet field 'f' must be Utf8"for every dtype but Utf8; it now keys its panels through the same ordinal-category label reader aDodge/Stackby=column already reads, sorelplot(col=)/catplot(col=)over a non-string column renders a panel per distinct value instead of refusing. A facet field of any other dtype (a temporal column, for instance) is still refused, now with a typed error naming the accepted dtypes and the cast remedy instead of the stale "must be Utf8" text. Seeferrum-spec.md's 2026-10-26 note. - Every categorical door sorts a numeric category by value, not by its stringified text.
X(sort="ascending")/Color(sort="descending")(and the rest of theShape/StrokeDashfamily),Chart.facet(sort=)/row_sort=, and theDodge/Stackslots that follow a sorted legend, over anInt/UInt/Floatcolumn, now read[-3, 1, 10, 2]as-3, 1, 2, 10, not-3, 1, 10, 2. AUtf8/Categoricalcolumn is unaffected. Seeferrum-spec.md's 2026-10-26 note. - An undefined confidence band warns, naming the cause, instead of silently vanishing.
mark_smooth(ci=...)atnpoints at or below the fit's parameter count (two points forlm/log/sqrt, three forquadratic, four forcubic) drew its fit line with no ribbon and no report; aloessbootstrap resample with too few finite values at some grid points, aRobustfit atn <= 2, an exactRobustfit whose residuals' median absolute deviation is 0, a singularRobustdesign or a zero sum of Huber weights, aRobustsandwich variance negative at some grid points, and aLogisticWald band with a negative variance at some grid points did the same. All of these now warn once (naming the group of a grouped fit and the facet panel of a faceted one) when the line is defined but the band is not, e.g.Smooth: the ci=0.95 band is undefined (2 points leave no residual degrees of freedom for a 2-parameter fit; the band needs at least 3); the fit line is drawn without it. A whole-fit loss (gambelow 4 distinct x, a zero-variance x) is unchanged, since it already warns throughDegenerateFit.ci=Noneand a well-determined fit never warn. Seeferrum-spec.md's 2026-10-26 note. - A row an explicit scale domain leaves out now warns, naming the count and a remedy, instead of silently not drawing.
LinearScale(domain=[2, 8])/xlim(2, 8)over a wider column still draws only the admitted rows, but now also warns once per channel and field, e.g.x scale: 92 row(s) of 'x' fall outside the scale's explicit domain, so they are not drawn; widen the domain, or pass clamp=True to draw them at the axis edge, and aBandScale/PointScale/OrdinalScaledomain missing a category warns the categorical form naming the category count instead. The same warning, with the same count, fires on every door:+,Chart.layer,fm.LayerChartstatic and.interactive(), a facet (summed across panels) andfm.hconcat.clamp=True, leaving the domain unset, and a stacked bar whose implicit zero base sits outside the domain (its own segment top stays inside it) still draw every row with no warning, andclip=Falseonmark_functionstill extrapolates past the domain with no warning either (mark_line/mark_area/mark_ribbonhave noclip=keyword of their own). ALogScale's own off-side warning and this one never double-count the same row. A layer whose rows a statistic produced (a histogram's bar layer, a KDE overlay) names its own entry and counts marks instead of rows, e.g.mark_histogram: x scale: 3 mark(s) of 'v' ..., with a bin cut on both ends counting once, and names the axis the chart actually shows (the caller's field, or thetitle=they wrote on a composite mark's or a figure's x/y, or the title a figure gives its axis) rather than the internal column the layer reads: amark_boxplot/mark_violinwhisker, cap and median,mark_errorbar(whose y axis title itself now reads the caller's field rather thanlower),mark_qq's reference line, themark_smooth/regplot/lmplot/residplotmetrics corner, and adisplotKDE overlay all speak with the name their primary layer shows, notlower_whisker/_metrics_y/value. A statistic layer whose mark draws many vertices per mark (mark_density, a KDE overlay,mark_smooth,mark_ecdf,mark_hex,mark_violin,mark_contour) splits by outcome: a mark the domain drops entirely counts under the sentence above, and a mark the domain only trims (still drawn, with some vertices removed) counts under a second sentence in the same entry voice, e.g.mark_density: y scale: 1 mark(s) of 'density' cross the scale's explicit domain, so only their part inside it is drawn; widen the domain, or pass clamp=True to draw them at the axis edge. That outcome is decided once per mark, over every axis, and reported on each axis where the mark lost a row, so a fitted linexlimandylimtogether leave undrawable warns not drawn on both axes. A statistic mark that loses a category a categorical domain leaves out but still draws warns a third sentence, e.g.mark_line: x scale: 1 mark(s) of 'g' reach a category the scale's explicit domain leaves out, so only their part inside it is drawn; add it to the domain, or drop domain= to draw every category. A statistic layer whose displayed name is suppressed (title=None,""or a blank string) and whose field its lowering cannot recover drops theof '<field>'clause (a composite,catplot,lmplotandregplotkeep naming the caller's field), e.g.mark_histogram: x scale: 1 mark(s) fall outside the scale's explicit domain, so they are not drawn; ....residplot's axes anddisplot(kind="ecdf")'s x axis take atitle=on the channel passed asx=/y=as a plain chart's axis does (a string replaces the title,title=Noneortitle=""draws none), where they dropped it. No rendered mark or SVG byte changes except themark_errorbaraxis title and those two titled axes. Seedesign-docs/spec-history.md's 2026-10-27 notes. - An unlayered chart's placement column naming a column its rows lack now refuses, instead of silently dropping it.
Chart(df).mark_bar().encode(x="x", x2="zzz", y="y")used to render withx2ignored and the bar's width auto-computed as thoughx2were unbound; it now refusesmark_bar: unknown column 'zzz' referenced by an encoding, in the mark's own voice, matching the layered door's existing refusal for the same mistake. Scoped to a column the mark places a row by on its drawing path (a quantitative bar'sx2, a horizontal bar'sy2, a segment's or rect'sx2/y2, a rule's or tick's placed channels); an ordinal-x bar'sy2or an area'sy2still renders silently. Seedesign-docs/spec-history.md's 2026-10-27 note. Chart.layer()and a figure's own door drop and warn an inherited binding a statistic layer's own output does not carry, instead of refusing.mark_histogram().layer().encode(opacity="v")andresidplot(...).encode(opacity="v")now warn... opacity 'v' was dropped: the statistic this ... mark draws does not carry 'v', so it draws without opacityand still render, matching the warning+already gave for the same mistake. Seedesign-docs/spec-history.md's 2026-10-27 note.- a .transform() step reading a column only a statistic computes is refused naming the statistics and the remedy
- displot ecdf, residplot and log_scale keep the caller's x/y scale, axis and format
- statistics under a log axis bin, smooth and dodge in log space, and count the rows a log scale cannot place once
- displot ecdf counts every observation, steps at each one in x order, and groups its count by every channel it draws
- statistic doors refuse a bin= or aggregate= they would ignore or misread, each with a remedy that works as written, and a series mark that draws nothing says why
- a statistic on an independent y axis computes in that axis's own space, and its off-side warning names its own field
- every fit on a log axis computes in that axis's space, and its off-side warning counts the caller's rows once
- displot ecdf counts the x it draws on every door, and every series rises from 0
- a series too short to draw is named once per layer, and a chained composite mark replaces the style before it
- a re-voiced bin=/aggregate= refusal names the remedy in the voicing figure's own spelling
- every statistic mark refuses the bin=/aggregate= it ignores
- an ordinal scale answers every continuous query without panicking
- a mark no positional encoding reaches is refused by the channel it needs, on every door
- a primitive mark call on a chart drawn from layers is refused at the call
- regression and statistic keywords read as encode() reads them
- a group that draws nothing for want of a position is named once, in the caller's terms
- a regression figure reads every x/y binding written after its call, or refuses it in its own voice
- residplot's value channels reach its residual points, and its computed columns never displace the caller's
Breaking changes¶
- A binding stays on the layer that declares it.
point.encode(color="c") + lineused to split the line byc; the line now draws whole and uncolored, as Altair draws it.point + line.encode(color="c")no longer colors the points,chart.layer(fm.Layer(mark="line", encoding={"color": "c"}))no longer colors the host, a right operand'stooltip=no longer becomes the left's tooltip, and(a + b).encode(detail="g") + cno longer splitsc. The legend still lists every value the colored layer draws. To share a binding, write it where both layers see it: on the composition,(point + line).encode(color="c"), or on the chart you attach layers to. This replaces two earlier entries in this release: a later layer'ssize, opacity,shapeorstroke_dashbinding no longer reaches the other layers, and a composition'sdetailreaches only the layers of that composition. fm.LayerChartdraws the same chart on every route. Its interactive output and its merged output used to let one member's bindings reach the members after it, sofm.LayerChart(point.encode(color="c"), line)split the line interactively but not in the static SVG. Every route now draws what the static SVG draws, and the static SVG draws one legend per channel instead of one per member.- Text labels draw only a color they bind themselves. A text layer no longer inherits the color of the chart it labels. It keeps drawing its own text color and one label per colored bar, but its rows no longer add legend entries that no mark draws, and a chart whose only colored layers are text draws no color legend and warns that nothing draws color. Bind
color=on the text layer to color the labels. - Attached layers read your rows, not a composite mark's internals.
mark_histogram().encode(x="v").layer(fm.Layer(mark="tick"))used to draw 4 ticks at the bins' left edges; it now draws a rug at each value ofv. Naming a histogram's or another layer's computed column from an attached layer (y="count",text="mean_y") is refused with a message that says to compute it in.transform(...).fm.Layer(data=d)now draws all ofd, where a filtered host used to filter it too. .transform(...)runs before the statistics on a single chart, in any call order. A filter or calculation now runs before the counts, means and bins your encoding asks for, whether you call.transform(...)before or after.encode(...),.layer(...)or the mark, soH.layer(L).transform(f)draws whatH.transform(f).layer(L)draws. A step that reads a computed column is refused with the remedy:chart.encode(y="mean(y)").transform(fm.transform_filter("datum.mean_y > 1"))raisesdata_filter: column 'mean_y' is computed by the chart's statistics (stat_aggregate), which run after the chart's .transform() steps: ....- A step on a
+composition reaches every operand over the same data.(a + b).transform(step)used to run only over the left operand's rows; it now also runs over every other operand built on the same frame, and still never touches an operand over different data. An operand whose statistic needs a column the step removes is refused, naming the step. SecondaryYfollows a later.encode(x=...).(chart + fm.SecondaryY("r")).encode(x="w")now draws the secondary series atwinstead of at thexthe chart had when the secondary axis was added.- A constant column on
opacity,fill_opacityorstroke_opacitydraws at the middle of the opacity range.fill_opacityandstroke_opacityused to draw each row's own value as its alpha when no domain or range was given; they now map like every other value, asopacityalready did. To draw the column's values as alphas, passscale=fm.LinearScale(domain=[0, 1], range=[0, 1]). stroke_widthbound to a field maps through a scale and draws a legend. It used to draw the raw values as pixel widths and ignorescale=; it now maps the data range to 1 to 4 px by default, honorsscale=(domain, range andreverse=), and draws a line-width legend.opacity,fill_opacityandstroke_opacityalso draw a legend now, and map through their scale on lines, areas, bars, ticks, rules and segments as they already did on points.legend=Nonehides either legend.bin=is refused on channels that have no binned meaning.fm.Size("z", bin=True)and the same onopacity,stroke_width,angle,text,tooltip,detail,shape,stroke_dash,key,href,x2,y2and the polar channels used to warn thatbin=was not yet honored and then fail at render with an unrelated error; they now raiseValueErrorat construction, naming.transform(fm.Bin(...))as the way to bin a column.aggregate=is refused the same way ondetail,shape,stroke_dash,key,href,description,urland the facet channels.- A binned
xwith a rawydraws one mark per row.mark_point().encode(x=fm.X("v", bin=True), y="y")now places each row at its bin; it was refused before. Abin={...}that declaresgroupby,cumulativeor its own aggregate where no channel draws it, abin={...}aggregate beside a channelaggregate=, and aname=on an encoding bin are refused with a message saying what to write instead. catplot(kind="count")has noncolumn. The bars count withy=count(), so.transform(...)and a binned color work on the count plot; the axis is still titledn. Label the bars withtext="count()"; alayers=binding namingnis refused with that remedy.lmplotandregplotfit"logistic","glm"and"robust"per hue. Underhue=(or a color bound later with.encode(color=...)) each group now gets its own fit and band in its color, where one pooled fit was drawn in grey. A group that cannot be fit is skipped with a warning naming it.- More mistakes are refused instead of drawing a blank or wrong chart. A binding to a column a layer's rows lack is refused on every channel the mark draws (it used to be checked only on
x/y, and never on the first layer); a filter or calculation that names a missing column is refused (it used to evaluate to null and blank the chart);chart + fm.SecondaryY("w")on a composition is refused when only the right operand hasw; andSecondaryYis refused underCoordFlip,CoordPolarandCoordGeo, with the remedy of drawing the series on a Cartesian panel. stack=stacks the channel you write it on, and contradictions are refused.fm.X("v", stack=True)stacks bars end to end horizontally.stack=on bothxandy, beside an explicitposition=, on a categorical channel, orstack=Falsebesideposition=fm.Stack(), now raises aValueErrornaming the fix; the shorthand used to be ignored silently besideposition=. A+operand'sposition=no longer reaches the other operand: inbars(position=fm.Dodge()) + boxplotthe boxes now draw centred, as alone.- A log scale leaves out values it cannot place, and says so. Under
fm.LogScale(), a zero or negative value onx,y,size,stroke_widthor an opacity channel is left out of that channel with a warning giving the count, wherex/ydropped it silently andsizedrew it at the default size. A column with no positive value is refused, with the remedy of an explicit negative domain (fm.LogScale(domain=[-100, -1])). Log axes keep their powers of ten when their labels thin out, and a short range ticks at 1, 2 and 5. - Facets: other-frame layers repeat in every panel, and null facet values are dropped with a warning. A layer whose data has no facet column used to draw in no panel; it now repeats in every panel. Rows whose facet value is null used to vanish silently; they are now dropped with a warning naming the count. Faceted bars read the one shared axis in every panel, where each panel's bars used to start from its own zero.
- The legend of a layered chart lists every layer's values. On
+, the color legend used the first colored layer's categories, soa + bandb + acolored differently; it now lists the values of every layer that draws color, in either order. A layer whose color type disagrees with the first layer's stays out of the scale and warns. Only an area layer that draws color makes the color scale categorical. - Composite marks group by
color,detail,shapeandstroke_dash.mark_smooth().encode(color="c")fits one curve perc(it was refused, or fit one curve when layered);mark_density().encode(detail=...),mark_boxplot().encode(detail=..., shape=..., stroke_dash=...),mark_histogram().encode(shape=...)andmark_contour().encode(color=...)group instead of refusing or ignoring the channel;mark_boxen().encode(color=...)draws one box per color. A line, area or ribbon splits into one series per group of the step that produced its rows. - Binned colors across panels. Concatenated or repeated panels that bin the same field the same way share one set of bins and one legend by default. Asking for a shared color (
Resolve(scale={"color": "shared"})) over panels whose colors cannot merge is refused naming both, where the request was silently ignored. - Axis titles come from the layer that draws the axis.
tick.encode(x="v") + line.encode(x="v", y="y")used to draw an untitled y axis; it is now titledyfrom the line, and the line's owntitle=titles it. encode(<channel>=None)binds nothing. It used to raiseTypeError; it is now a no-op onencode()and infm.Layer(encoding=), and leaves an earlier binding in place. An unknown channel name is refused whatever its value, andfm.Layer(encoding=)refuses the internalorderchannel.- Span labels sit at the top of the span by default. A span annotation's label is drawn 6 px below the span's top edge, its documented default
label_position="top". This has been so since 0.15.0, when the setting started to take effect; earlier releases drew every span label at the middle, and the move was not announced then. Passlabel_position="middle"to center the label. mark_boxendraws its outliers by default.outlier_thresholdnow defaults to0.0, onmark_boxenand onfm.LetterValue: every observation beyond the outermost boxes is drawn as an outlier point, as seaborn's boxen plot does. At the old default of1.5the cutoff sat far outside typical data, so a default boxen drew no outliers (a four-group chart of 80 normal points per group drew none; it now draws 80). Passoutlier_threshold=1.5to keep the old cutoff.mark_boxplotis unchanged.- Bars and areas start at zero, and stacks split by sign. A bar's base now sits on the 0 tick whenever 0 is on the axis, vertical or horizontal, so a negative bar hangs below (or left of) it. Bars used to rise from the plot edge, up to 8 px below the 0 tick, and on an axis that crosses zero every bar started at the bottom. An area closes at 0 the same way. When 0 is off the axis (a log scale,
zero=False, an explicit domain such as[40, 80]) bars still start at the edge nearest 0. A horizontal bar chart and afm.SecondaryY(mark="bar")axis now include 0. A stack holding negative values splits by sign: positive segments stack up from 0 and negative ones down, and every segment draws (two of four used to vanish). Undernormalizeeach segment is divided by the stack's total size, so the positive and negative parts together fill a height of 1, and undercenterthe whole stack is centered on 0. Stacks without negative values are unchanged. - Crowded number and date x axes keep full-size flat labels. Label spacing is now judged between each pair of neighbouring labels instead of by the widest label, so sparse axes keep every label at full size where they used to shrink to a smaller font. A crowded continuous x axis (numbers, dates or a log scale) now keeps an evenly spaced subset of flat labels, at least three, counted from 0 when 0 is on the axis, before it shrinks or rotates any; dense axes used to turn their labels vertical.
cull_labels=Falsekeeps every label and still rotates. Categorical axes, an explicitlabel_angle,label_overlap=and y axes keep their layout. With automatic padding on, labels or a title that still run past the canvas raise one warning naming what overflows, the side, how far, and a remedy. - Text labels stay at least 4 px inside the plot frame. At default padding, a number or date axis that text labels sit on now leaves room at each end for each label's full ink, measured as it is drawn (font size, angle, number format, alignment and offsets), so a label no longer touches or crosses the frame; ticks still line up with the marks, and marks layered with the text share the room. Labels too wide for the panel keep half the axis and warn once, naming how many still cross the frame. An explicit padding, domain, range or axis limit is used as written, and polar and map charts, category axes and charts without text are unchanged.
- Annotated matrices are readable on every cell. The value labels of
heatmap(annot=True),confusion_matrix_chart,rank2d_chartandclassification_report_chart, and the counts ofclass_prediction_error_chart, now pick, cell by cell, the ink that reads at 4.5:1 contrast or better against that cell, on every theme and color ramp. They used to paint one ink that all but vanished on dark cells. Afill=you set on the labels still wins, and legends are unchanged. - A diverging color scale uses the theme's diverging colors whatever the data's sign.
fm.DivergingScale()with no scheme, andheatmap(center=...), used to fall back to the theme's single-hue ramp when all the values had one sign, soheatmap(center=0.5)over values from 0.1 to 0.9 drew a plain blue ramp. They now draw the theme's diverging colors. A scheme you name still wins. The colorbar of a scale with a midpoint now shows, at the midpoint, the color the cells draw there, andconfigure_color(domain=, range=)now reaches the colorbar as well as the marks. - An axis spans only what its marks draw. A statistic layer used to stretch its axis to a raw column it never draws:
mark_smooth(ci=0.95)ran its y axis to the raw data's minimum (ticks from -4 to 22 around a fit drawn from about 0 to 20), and a column of yours namedlowerstretchedmark_errorbarto it. Each layer now widens the axis only with the rows it draws, and a filtered chart composed with+spans only the rows it keeps. - Endpoint labels take their line's color. The labels at the end of each line on
gain_chart,lift_chart,learning_curve_chartandvalidation_curve_chart, Baseline included, are now drawn in that line's color instead of one fixed ink. Their text, order and placement and the legends are unchanged. transform_calculateon an existing column replaces it.fm.transform_calculate("v", "datum.v * 10")used to add a second column namedvthat nothing read, so every mark kept the old values and the recalculation did nothing. It now replacesvin place. A new name still adds a column.- Reference renders that moved, each reviewed before and after and kept by ruling:
tests/goldens/phase_10/alpha_selection_ridge.svg(log ticks now read0.01to10at 1, 2 and 5, with thealpha=1marker on its value instead of fractional, rotated ticks);tests/goldens/facet_shared_extent/histogram_facet_single_group.svg(the second panel's bars read true against the shared axis);tests/test_phase_9_e2e/goldens/displot_stacked_hist.svg(stacked groups share one set of bins);tests/goldens/phase_10/decision_boundary_binary_logistic.svg(one legend title's text in the SVG; the rendered image did not change); thelmplotrobust-hue digests, static28b56d57toe4221df2and interactive8f49dd45to9828e396(per-hue fits and bands instead of one grey fit); the radial-stack digest (every stacked segment draws on the full stacked radius); and the bars-plus-boxplot digest (the boxes no longer inherit the bars' dodge). padding.autois on by default (#135). Before: off unless you passedconfigure_padding(auto=True). After: on, with the built-in default as its only owner (there is no theme key).PaddingConfig.autoandconfigure_padding(auto=)change frombool = Falsetobool | None = None;Noneleavesautooff the wire. A chart whose continuous-axis edge label overhangs the canvas now reserves room for it: on a 180x200mark_point()chart over x in 0..1e6 with ticks at 0 and 1,000,000, the last label withlabel_format="integer"overhung the canvas by 1 px and now ends 4 px inside it (plot width 101.056 px to 95.612 px), and withlabel_format="currency"it overhung by 4 px and now ends 5 px inside (plot width 101.056 px to 91.898 px). The margin is measured on the labels the axis actually draws, at the angle it draws them, so charts whose labels and titles already fit are byte-identical, including charts whose x labels the axis rotates or thins out. A plot thatauto=Falsedraws is never collapsed byauto: when the extra padding would leave no plot area, the chart renders exactly as withauto=False.configure_padding(auto=False)restores the previous geometry exactly.fm.compute_layoutalso runs withautoon now; it has no argument to turn it off.padding.autopads only past the chrome already on that side (#135). Before: the rescue ignored the legend, the chart title and secondary-y bands, soconfigure_padding(auto=True)added right padding a label did not need: 9 px with a right legend and 14 px with a secondary y axis, on a 200 px wide layout. After: 0 px in those cases, and exactly the remaining overhang when a label extends past the legend gutter. The padding is solved as a bounded fixed point against the real legend and title reservations, so explicitauto=Truecharts with a legend, chart title or secondary y axis can move.- A non-bool
padding.autois refused (#135). Before:configure_padding(auto="yes")was accepted and failed at render withValueError: chart_config: invalid type: string "yes", expected a boolean at line 1 column 26. After:ValueError: padding.auto must be True or False; received 'yes'at the call, fromconfigure_padding(auto=)andPaddingConfig(auto=), andFerrumOverrideError: Chart.override(padding_auto=...) must be True or False; received 'yes'from.override(padding_auto=), at render, when overrides are applied.1and0are refused the same way;numpy.bool_is accepted. padding.automeasures the x labels the axis draws, at their drawn angle (#135). Before,configure_padding(auto=True)charged half the width of the raw first and last x labels as if they were flat, before the axis chose an angle or thinned its labels, and assumed the edge tick sat on the plot edge. On a 180x200mark_point()overx = [0, 5e5, 1e6]withlabel_format="currency", whose labels draw at -90 degrees and fit, it added 13.753 px on the right (plot width 104.273 px to 90.520 px); it now adds nothing and the chart is byte-identical toauto=False. A flat edge label that overhangs now gets the overhang less the distance its tick sits inside the plot edge (up to 8 px less than before). An explicitlabel_angleand top-oriented x labels were not corrected at all and now are: on a 240x200 chart over x in 1e6..2e6 with currency ticks at both ends andlabel_angle=-45, the bottom axis's first label (y axis hidden) ran 15 px past the left edge and now ends 12 px inside it, and withorient="top"the last label ran 10 px past the right edge and now ends 19 px inside it..override(padding_*=...)refuses withFerrumOverrideErrorin theChart.overridevoice (#135). Before: a malformed padding override raised a plainValueErrorreadingoverride 'padding_top' must be non-negative; received -1. After:FerrumOverrideError: Chart.override(padding_top=...) must be non-negative; received -1, and the same forpadding_right,padding_bottom,padding_leftandpadding_auto.FerrumOverrideErroris aValueError, soexcept ValueErrorstill catches it, and a figure that wraps.overridenow names itself in these refusals the way it already did for scale and mark overrides.configure_padding(...)andPaddingConfig(...)keep their ownpadding.auto ...voice.padding.autokeeps at least half the plot thatauto=Falsedraws (#135). Before: the only floor was the 1 px minimum panel, so a rescue could trade almost the whole data area for an edge label or a title. On a 220 px wide chart with 1e9 y labels, a 26-character x title was recentred by shrinking the plot to 8.565 px wide, and a 27-character one to 1.469 px. After:automay take at most half of theauto=Falseplot width (both x sides together) and half of its height (both y sides together), per panel. A label or title whose rescue would take more adds nothing on that side. A rescue that leaves at least half the plot still ships: those two titles, and a 28-character one, are now recentred inside the canvas on plots 118.098 px, 110.798 px and 103.498 px wide (theauto=Falseplot is 137.946 px), with the x labels thinned evenly to0,0.3,0.6and0.9(see the x label entry below). A 12- to 33-character y title on a 120 to 200 px tall chart used to shrink the plot to 2.4-53 px out of 30-110 px, and now renders asauto=False. Withauto=False, nothing changes, and its 1 px minimum panel stays.- Rescues that each fit but together take more than half the plot add nothing (#135). Before: the first and last x labels, or an x label and the x title, that each fit within half the plot but together took more were scaled down to exactly half, so the chart shipped a partial rescue whose labels still ran off the canvas. After:
autoadds nothing on that axis and the chart lays out asauto=False. On a 176x150 chart whose first and last x labels are both long billion-scale numbers, the plot was 48.5 px wide with both labels still clipped, and is now the 97.1 pxauto=Falseplot. The y axis follows the same rule. padding.autonever loses more of an x axis's own labels thanauto=False(#135). Before: a rescue narrows the plot, and the narrower plot could make the axis cull a label, so the default could draw fewer x labels thanauto=False. On a 124x150 chart withlabel_format=",.4f",auto=Falsedraws-1,234,567.8900at -45 degrees, and the default drew no x label at all. After: each x axis counts the ticks it generates a label for but does not draw in full (culled, or cut short with an ellipsis). A rescue is declined when an x axis would lose more of its own ticks than it loses atauto=False, or when it lays out a different number of x axes, and the chart then ships exactly asauto=False; the 124x150 chart does. Only the count matters, not which ticks are labelled: on a 240x160 chart with six 17-character categories and a 40-character x title,auto=Falselabels categories 0 and 4 on a 161.47 px plot, and the default labels categories 0 and 5 on a 137.05 px plot with the title inside the canvas. One exception lets a rescue lose more: on a continuous x axis, labels thinned evenly (everys-th tick from the first, none cut short, at least three drawn) are not a loss. On a 160x200 chart over 0..1 with a 19-character x title,auto=Falsedraws0,0.3,0.6and0.9rotated on an 81.056 px plot, and the default draws0,0.4and0.8flat on a 78.725 px plot with the title inside the canvas. The 220 px titles above ship the same way, and so does a 270x200 chart over 0..3 with a 44-character x title:auto=Falsedraws 8 rotated labels on a 191.056x110.056 px plot with the title 8 px past the canvas, and the default draws0,0.6,1.2,1.8,2.4and3flat on a 151.999x124.961 px plot with the title 11 px inside it. Thinning to two labels, an irregular cull, an ellipsis and tick marks only remain losses: on a 176x100 chart whose two,.4fticks are0.0000and1,234,567.8900, the default draws both labels exactly asauto=Falsedoes, on the same 97.056 px plot, with the last label still 7 px past the canvas.- Each axis's rescue is judged on its own (#135). Before: when one axis's rescue was unusable (it collapsed a panel, left under half the plot, or lost more of an x axis's own labels than
auto=False),autocould lose the other axis's valid rescue with it. After: an axis whose rescue alone is unusable is closed andautosettles again, so the other axis's rescue still ships; the same rule applies to x and y. An x rescue that would rotate its labels into a band leaving under half the height no longer costs the y title its rescue. When both axes' rescues are unusable, or each is valid alone but together they are unusable,autoadds nothing and the chart ships exactly asauto=False. - The x label band is exactly the labels the axis draws, with
autoon or off. Before: the layout sized the band with its own copy of the label cascade, which judged each label against the plot width divided by the label count rather than the gap between ticks, used the width before the y and secondary-y bands, ignored facet cells, a composite's imposed region and the font-shrink stage, and fell back to -90 degrees where it found no fit. It could reserve a rotated band for labels the axis draws flat, leaving a blank strip above the x title, or reserve too little. After: the band comes from the same label layout the axis draws, at the width the axis is drawn at: the widest drawn label at its drawn angle when rotated, and the standoff plus the most lines any drawn label has when flat or wrapped. On a 272x150 chart whose last label is1,234,567,890, the band was 83.78 px for labels drawn flat in 19.2 px, and is now 19.2 px, so the plot keeps its full height. Charts with flat x labels under an unused rotated band grow by that strip (14.5 px ondensity_styledand the tapered-line reference charts, 21.7 px onintercluster_distance). A shared-x facet whose -90 degree labels were sized at the whole region's width now reserves the band at the facet cell width: its plot is 14.9 px shorter and its x title no longer sits in the bottom padding. - Independent-axis facets reserve the band their own panels draw, and their ticks sit on their marks. Before: the label bands were reserved from the chart-level axis, but each independent panel draws an axis rebuilt from its own scale. A y band reserved 45.17 px for labels drawn 55.22 px wide, so they clipped, and an x axis whose panels draw flat in 19.31 px reserved a 94.73 px rotated band sized for the union of every panel's labels. Independent panels' ticks also sat 8 px off their marks: x ticks at 62.71 and 317.36 px against marks at 70.71 and 309.36 px, and y ticks at 240.96 and 42.52 px against 232.96 and 50.52 px. After: one owner resolves each panel's tick inputs (domain, inset and format), and both the band reservation and the drawn axes read it, so the y band is 55.22 px, the x band 19.31 px, and the ticks sit on the marks. Many cramped independent grids that drew blank panels now draw them. The
pdp_chartandshap_chartper-panel figures move accordingly: the multiclass per-classpdp_chartreserves the -90 degree band its panels draw at the cell width, and the three-featurepdp_chartdraws each panel's own labels flat with fewer ticks instead of the union at -90 degrees, so its plots are taller, and the per-classshap_chartwaterfall reserves its panels' flat labels at the shrunk font, so its bars are taller. - Independent-axis facets title only the outer panels, like shared facets. Before: under
.share_scale(x="independent")every panel drew its own x title, and undery="independent"every panel drew its own y title, so a 2x2 facet drew 4 x titles (or 4 y titles) where the shared facet drew 2. After: the x title is drawn only under the bottom row and the y title only beside the left column, so that facet draws 2 of each with either axis independent or both. In a wrap whose last row is short, an upper panel with no panel below it draws its x axis but no x title, as on a shared facet. These charts change only by the removed titles. axis(x=False)andaxis(y=False)hide the axis on independent facets. Before: an independent axis was rebuilt for each panel and drawn whatever the flag said. On a 2x2 facet,share_scale(x="independent")withaxis(x=False)drew 28 x tick labels and 4 x titles, andshare_scale(y="independent")withaxis(y=False)drew 64 y tick labels and 4 y titles. After: the hidden axis draws nothing, exactly as on a shared facet.- An explicit-range category axis sits on its marks in every facet panel. Before: with
BandScale(range=...)orPointScale(range=...)on a shared facet axis, every panel after the first drew its ticks and labels at the first panel's pixels while its marks sat in its own panel. On a two-panel facet over three categories withrange=[10, 110]on x, the second panel's labels sat at x = 26.667, 60 and 93.333 and its points at 243.402, 276.735 and 310.068. The same happened underCoordFlip, with the category axis shared or independent (second-panel ticks at y = 26.667, 60 and 93.333, points at 154.802, 188.135 and 221.469), and on a secondary y axis with an explicit range: withSecondaryY("s", mark="point", scale=fm.BandScale(range=[10, 70]))on a one-column facet, the second panel's secondary labels sat at y = 23.667, 43.667 and 63.667 instead of 151.802, 171.802 and 191.802. After: every panel's ticks and labels sit on its own marks, exactly. An independent explicit-range axis withoutCoordFlipalready did. - A raw scale dict with a repeated category gives each domain entry its own slot under an explicit range. The dict door accepts a repeated category, though the scale classes refuse one. With
fm.X("x", scale={"type": "band", "domain": ["a", "b", "a", "c"], "range": [10, 210]})overa,bandc, the secondalabel was drawn at x = 35, on the firsta's bar, and is now drawn at x = 135, in its own slot, where no bar is drawn. The same domain withoutrange=already labelled each entry in its own slot. The bars do not move. - A label band that would leave no plot is thinned until a plot remains. Before: a cramped grid, such as a 2x2 facet 220 px tall with 12 shared rotated categories, could reserve a label band taller than its cells and render blank, with
autoon or off. After: the label cascade has a height budget. When the band it would draw leaves a panel at or below the 1 px minimum, it culls labels by stride and shrinks until the band fits, so the reserved band still equals the drawn band and no label runs into the next row. Those grids go from blank to 30.3 px panels, drawing every other one of their 12 labels flat. When no stride fits, the axis draws tick marks only, and the band is the tick length. The budget overridesTheme(cull_labels=False)when the alternative is a blank plot, so such a grid at 780 px renders like the default instead of blank;label_overlap="true"never triggers it. The guarantee is a plot above the 1 px minimum, not a roomy one: some cramped grids now draw panels a few pixels tall (4.7 px) where they were blank. Charts whose band already left a plot are unchanged. - Under
CoordFixed, the x label band is sized at the panel the aspect ratio leaves. Before: the band was sized at the width before the aspect correction narrowed the panel. On a 200x150 chart withCoordFixed(ratio=0.5)and short numeric labels, the plot was 29x59 px and is now 37x75 px. Where the narrower panel rotates its labels, the band now reserves the rotated labels it draws, so some plots are shorter; where the labels change at the same plot size, the band and the drawn labels now agree (a 280x150 aspect-1 chart over billions drew0 4e9 8e9rotated and now draws0 5e9 1e10flat). The band is a bounded fixed point whose starting band keeps the panel drawable, so short, wide aspect-2 charts with 10 categories, 760 to 880 px wide and 150 px tall, which drew blank, now draw a plot with tick marks only on x. The fixed point costs time on very long categorical axes: a 400-category aspect-1 chart takes 43-73 ms, where it took 18-25 ms. - An x title sits below wrapped labels (#135). Before: under flat x labels that wrap onto several lines, the title sat one label line below the axis, drawn over the second line (about 3 px of ink overlap), with a blank line-high strip reserved under it. After: the title clears the last drawn line by the axis title padding, on top and bottom axes. On a 240x160 chart with wrapped category labels, the title baseline moves from 122.826 to 136.135 and the gap from the labels' ink to the title's goes from -3 px (overlap) to 10 px. A titled x axis with no tick labels (
values=[]) places its title where its reserved band ends: on a 400x300 chart, its baseline was 282.135, 6 px past the band, and is now 276.135. - Wrapped x label lines use the renderer's line pitch. The renderer steps wrapped x label lines by 1.2 times the font size, and the band now reserves that step for each further line instead of one metric line height (13.31 px at an 11 px font). Every chart with wrapped x labels gains 0.11 px of plot per extra line, and its x title moves up by the same amount.
- Wrapped top-axis labels stack upward. Before: a wrapped label on a top x axis was one SVG
<text>whose extra lines ran downward as<tspan>s into the plot, while the band reserved them above the axis. After: each line is its own<text>, stacked away from the axis, with the last line on the single-line baseline. - An explicit padding side no longer moves the axis title that
autorecentres (#135). Before:auto's tick extra on a side you set explicitly was discarded, but it still moved the plot centre the axis title was recentred on; on the measured chart the bottom inset was 38 px. After: the title is recentred on the plot that ships, and that inset is 16 px. Charts with no explicit padding side are unchanged. - A chart width or height that is not a finite number above 0 is refused at the call that received it.
Chart(width=, height=),Chart.properties(width=, height=), every composite's.properties(width=, height=)andChart.override(width=, height=)takeNone,"container"or a finite number above 0 (anint, afloator a NumPy number, stored as afloat), and refuse everything else with aValueErrornaming the call. Before, in 0.23.0:width=0rendered silently at the default 640x480;float("nan")andfloat("inf")rendered an SVG withwidth="0"; a negative width failed at render withValueError: invalid viewport: width=-5, height=480 (both must be > 0); a string failed at render withTypeError: argument 'viewport': must be real number, not str; andTruefailed at render withValueError: layout failed: padding left=16 exceeds viewport dimension 1. After, from.properties()itself:Chart.properties(width=...) must be positive; received 0,... must be a finite numeric pixel value; received nan,... must be a numeric pixel value (int or float), not str; received 'abc'and... not bool; received True. A string is now aValueError, not aTypeError.Chart(width=0)refuses asChart(width=...); a composite refuses as its own class, for exampleHConcatChart.properties(width=...) must be a finite numeric pixel value; received nan, where it failed at render withfailed to render composite leaf leaf #0: invalid viewport: ...; and.override(width=0)raisesFerrumOverrideError: Chart.override(width=...) must be positive; received 0when overrides are applied.fm.compute_layoutkeeps its own refusal:ValueError: invalid viewport: width=NaN, height=200 (both must be finite and > 0).padding.auto's settle loop also stops on its own, with a hard pass cap, whatever the input. - An empty chart's SVG header writes its size as a float. Because a numeric width or height is now stored as a
float, a chart with no rows, which writes its SVG header from the stored size, writeswidth="300.0"for.properties(width=300)where it wrotewidth="300". Charts with rows render byte-identically whether the size was given as anintor afloat. - Figure functions refuse a malformed size argument at the call, in their own voice.
height=andaspect=ondisplot,catplot,relplotandpairplot,height=onjointplotandfigsize=onclustermaprefuse 0, a negative number, NaN, infinity, a bool and a non-number, andfigsize=refuses anything that is not a(width, height)pair:displot(height=...) must be positive; received 0,displot(aspect=...) must be a finite number a float can hold; received nan,clustermap(figsize=...) must be a (width, height) pair; received (300,). Before, in 0.23.0:height=0andaspect=0rendered silently at the default size (displot(height=0)at 640x480,displot(aspect=0)at 640x300), as didjointplot(height=0)(768.05x576.05) andclustermap(figsize=(0, 300))(760x385); a NaN height rendered an empty-size SVG (displot(height=float("nan"))wrotewidth="0" height="0"); a negative height failed at render withValueError: invalid viewport: width=-5, height=-5 (both must be > 0); andclustermap(figsize=(300,))raisedIndexError: tuple index out of range. A size that comes out 0 only because the data is empty (row facets over an empty frame) still renders the empty chart. -
A scale-type override keeps what your padding meant (#157).
paddingmeans a different thing on each scale type: the inner gap on an ordinal scale, the end padding on a point scale, d3's shorthand for both sides on a band scale, and a fraction of the span on a continuous scale..override(x_scale_type=...)used to carrypaddingacross a type switch by name, so the value changed meaning. It is now translated by meaning, and dropped when the new type has no equivalent:OrdinalScale(padding=0.3)to band: before, band padding 0.3 on both sides (73.143 px bars on four categories); after,paddingInner0.3 (85.004 px bars).PointScale(padding=0.5)to band: before, band padding 0.5 (49.923 px bars); after,paddingOuter0.5 (89.862 px bars).aligncarries asalign.PointScale(padding=2)to band: before, refused asBandScale(padding=...) must be a number in [0, 1]; received 2, a value you never wrote; after,paddingOuter2 (56.164 px bars). To ordinal: before, an inner gap of 2, which put the four points at x -77.501 to 764.3, the outer two off the 640 px canvas; after, the padding is dropped and they sit at x 132.949 to 553.85.OrdinalScale(domain=list("abcd"))to point: before, points on the range ends (x 62.799 to 624.0 on the default chart); after, the ordinal padding is dropped and the point default applies (x 132.949 to 553.85).- Band to ordinal carries the inner side (
paddingInner, elsepadding) aspadding; band to point carries the outer side (paddingOuter, elsepadding) aspadding, plusalign. Before,paddingsurvived by name andpaddingInner/paddingOuterwere dropped:{"type": "band", "paddingInner": 0.3}switched to ordinal placed four points at x 132.949 to 553.85 and now places them at 115.885 to 570.913 (ordinalpadding0.3), and{"type": "band", "paddingOuter": 0.2}switched to point went from 132.949 to 553.85 (the point default) to 95.811 to 590.988 (pointpadding0.2). - A continuous
paddingswitched to band, point or ordinal, or a discretepaddingswitched to a continuous type, is dropped:{"type": "linear", "padding": 0.3}switched to band drew 73.143 px bars and now draws 112.327 px, the unset band. Between continuous types (linear to log)paddingis kept, as before.
A valid value the new type has no use for is discarded silently, as any other key the new type does not accept already was. A malformed value is refused when the override is applied, naming the key you wrote, whether the switch would carry it or drop it:
{"type": "band", "paddingInner": 1.5}switched to ordinal raisesValueError: scale: paddingInner must be a number in [0, 1]; received 1.5, and{"type": "band", "align": 5}switched to ordinal raisesValueError: scale: align must be a number in [0, 1]; received 5; both used to render. A key stated in the same.overridecall as the new type is read under the new type, as before. - A band scale with no padding draws like the auto-inferred categorical axis (#157). Before:fm.BandScale(),{"type": "band"}and.override(x_scale_type="band")applied a hidden padding of 0.1 on both sides, which ferrum attributed to d3; d3'sscaleBandactually defaults to 0 (0.1 is Vega-Lite's convention). After: an unset padding inherits the auto-inferred layout (inner 0, outer 0). Four bars on the default chart go from 98.629 px to 112.327 px wide; amark_boxplot()over four categories on a namedBandScale()goes from 73.95 px to 84.22 px boxes; heatmap cells on a namedBandScale()now tile edge to edge; andPointScale()switched to band by.override(x_scale_type="band")draws 112.327 px bars (aPointScalewith a padding you set carries it aspaddingOuter; see the scale-type override entry above). To keep the old look, passpadding=0.1: an explicitpadding, or bothpadding_innerandpadding_outer, keeps d3's band math bit-for-bit (BandScale(padding=0.1)still draws 98.629 px bars). - One band-padding side set alone leaves the other atpadding, then 0 (#157). Before:BandScale(padding_inner=0.2)kept outer padding 0.1, drawing 89.862 px bars. After: outer padding is 0 (d3's rule), drawing 94.591 px bars. Passpadding_outer=0.1to keep the old geometry. -BandScale's compute facade, getters, equality, repr and wire follow the unset padding (#157).BandScale(domain=list("abcd"), range=[0, 400]).bandwidth()was 87.805 and is 100.0; onrange=[40, 260],scale("a")was 45.366 and is 40.0, andbandwidth()was 48.293 and is 55.0.padding_innerandpadding_outerreturnfloat | None(BandScale().padding_innerwas 0.1, nowNone), and a newpaddinggetter returns the value you set orNone.BandScale() != BandScale(padding=0.0)(same pixels; only the second states a value), and the repr prints each argument as set:BandScale(domain=[], padding=None, padding_inner=None, padding_outer=None, align=0.5). The wire carries padding keys only when set:BandScale()no longer emitspaddingInner: 0.1, paddingOuter: 0.1.PointScale(padding=)now defaults toNoneand still resolves to 0.5 with byte-identical rendering, butPointScale()no longer equalsPointScale(padding=0.5), its repr printspadding=None, its wire omitspadding: 0.5, and itspaddinggetter returnsNone(was 0.5), like every other scale getter for a value you did not set.PointScale(padding=0.7).paddingis still 0.7. - Band padding is validated on d3's bounds on every door, naming the call (class, override) or the scale and channel (dict) (#157).paddingandpadding_innermust be in[0, 1];padding_outermust be finite and >= 0.BandScale(padding_inner=1.0)was refused and is now accepted.BandScale(padding_inner=1.5)raisedpadding_inner must be in [0, 1); got 1.5and now raisesValueError: BandScale(padding_inner=...) must be a number in [0, 1]; received 1.5; a malformedpaddingis refused even when explicit inner and outer values would mask it. The constructors' other checks use the same voice:BandScale(align=...) must be a number in [0, 1]; received 2(wasalign must be in [0, 1]; got 2),PointScale(padding=...) must be a finite number >= 0; received -1(waspadding must be >= 0; got -1) andPointScale(align=...) .... A malformed padding in a dict,{"type": "band", "paddingInner": 1.5}, was accepted and drew out-of-range bands; it is now refused at render withValueError: band scale on x: paddingInner must be a number in [0, 1]; received 1.5. An out-of-range override padding on any channel (x_scale_padding,x_scale_padding_inner,x_scale_padding_outer) was accepted too; it is now refused naming the path you wrote:.override(x_scale_type="band", x_scale_padding=1.5)raisesChart.override(x_scale_padding=...) must be a number in [0, 1]; received 1.5, and.override(x_scale_padding_outer=-1)on a band x raisesChart.override(x_scale_padding_outer=...) must be a finite number >= 0; received -1. The override door also checks the point, ordinal and align bounds, which it used to accept:.override(x_scale_align=5)on a band x raisesChart.override(x_scale_align=...) must be a number in [0, 1]; received 5,.override(x_scale_padding=-1)on a point x raisesChart.override(x_scale_padding=...) must be a finite number >= 0; received -1, and.override(x_scale_padding=1.5)on an ordinal x raisesChart.override(x_scale_padding=...) must be in [0, 1]; got 1.5. The dict door still does not check these three. -clustermapdrawsheatmap's default cell border (#125). Before:clustermap(df)'s center cells had no border, andclustermaphad nolinewidths=/linecolor=parameters (clustermap(df, linewidths=0)was refused asunknown encoding channel: 'linewidths'). After: each center cell draws a white 0.5 px stroke, the same default asheatmap, andclustermaptakeslinewidths=andlinecolor=withheatmap's meaning and validation.clustermap(df, linewidths=0)restores the borderless look. Dendrograms, colorbar and labels are unchanged, andmark={"stroke": ...}still wins on the cells.heatmap(df)output is byte-identical. Confusion matrix, classification report, rank2d andjointplot(kind="hist")stay borderless. -heatmapandclustermaprefuse a malformed border, naming the figure and the argument (#125). Both signatures defaultlinewidthsandlinecolortoNone, which means 0.5 and"white". Before and after, forheatmap:linewidths=Noneraised a rawTypeError: '>' not supported between instances of 'NoneType' and 'int', and now draws the default border;linecolor=Nonedrew no border (with a warning aboutstroke_width), and now draws the white default;linewidths=-1andlinewidths=float("nan")drew no border silently, and now raiseheatmap(linewidths=...) must be non-negative; received -1andheatmap(linewidths=...) must be a finite numeric pixel value; received nan;linewidths="a"raised a rawTypeError, and now raisesheatmap(linewidths=...) must be a numeric pixel value (int or float), not str; received 'a';linewidths=Truerefused asheatmap(stroke_width=...) ..., and now asheatmap(linewidths=...) must be a numeric pixel value (int or float), not bool; received True;linecolor="notacolor"refused asheatmap: stroke='notacolor' is not a valid color (...), and now asheatmap(linecolor=...)='notacolor' is not a valid color (...);linecolor=3refused asheatmap: stroke must be a string; got 3, and now asheatmap(linecolor=...)=3 must be a color string, not int.clustermaprefuses the same values voicedclustermap(...). -heatmap/clustermapborder sentinels and inert pairs (#125).linecolor="none"or"transparent"draws no border, aslinewidths=0does;heatmapused to also warn thatstroke_widthhad no effect, and is now silent.linecolor="theme:label"still draws the theme's label color. An explicit value the other argument makes inert now warns naming both:heatmap(linewidths=2, linecolor="none")warned aboutstroke_widthand now warnsheatmap: linewidths=2.0 has no effect when linecolor='none' draws no cell border; it was ignored, andheatmap(linewidths=0, linecolor="red")was silent and now warnsheatmap: linecolor='red' has no effect when linewidths=0.0 draws no cell border; it was ignored. The warningsheatmapandclustermapraise from their own arguments (these two, andheatmap's three color-domain warnings forvmin=/vmax=/center=) now point at your own line instead of ferrum's internals; render-time warnings are unchanged. - One size rule at every door, and a point'ssize=0refuses everywhere (wave 7 close, #116). Which marks draw a constantsize=and which values are legal is now one Rust rule that every door runs at construction with the render-time text. Newly refused:fm.Layer(mark="point", mark_kwargs={"size": 0})(mark_point(size=...) must be a positive number; received 0),fm.Layer(mark="area", mark_kwargs={"size": 5}), a figure function'smark={"size": ...}that its marks cannot draw or that is not above zero (relplot(..., mark={"size": 0})raisesrelplot(size=...) must be a positive number; received 0;displot(kind="hist", mark={"size": 5})raisesdisplot(size=...) has no effect on mark_bar; received 5.), the same through a visualizer'smark=(voiced as the class), a composite'ssize=that its point or line cannot draw (mark_qq(size=0)), and a point's constant size of 0 on a hand-built wire spec. Before, those doors reached render unchecked: a point drewr="0"and an area ignored the size. The "has no effect" refusal names the call and, separately, the mark that would not draw the size:fm.Layer(mark="area", mark_kwargs={"size": 5})raisesLayer(size=...) has no effect on mark_area; received 5., and a composite names the mark it emits (mark_density(size=...) has no effect on mark_area; received 5.). A refused value now prints as Rust prints a number (received 20for20.0). - A not-honored mark kwarg raisesValueErrorinstead ofTypeError(wave 7 close).mark_bar(arrow=True),mark_point(squiggly=1), a composite's unknown catch-all kwarg andvalidate_user_mark_kwargsnow raiseValueError, the type every other construction refusal raises. The message is unchanged. Code catchingTypeErrorhere must catchValueError. - Warnings and refusals name the public call you made (wave 7 close). Every public figure function (not only those that draw a line) and every visualizer stamps its own name on the chart it returns, and every per-layer render refusal is voiced by it: a text mark's format refusal now readsmark_text: the number format ...(before: no prefix). Desugar warnings use the same name: the violin hue-inner warning readsmark_violin: inner marks are drawn at each category's center and are not dodged per hue group; use Chart.mark_violin(inner="none") to drop the inner markfrommark_violinandcatplot: ...fromcatplot(before:mark_violin(inner=...): ...without the recourse, andcatplot(kind='violin'): ...). Code matching those warnings by text must update. -fm.Swarmdropsswarm_x,swarm_yand the offset placeholder from its output (wave 7 close, #161). The output is the input columns unchanged (minus rows whosedodgevalue is null); placement happens at render. A chart that encodedswarm_ymust encode the value column instead (swarm_ywas a copy of it that nothing read). ASwarmfollowed by an aggregate that keeps the category and value columns is now placed, with no warning (before: it warnedswarm could not be applied ...and left the rows unplaced). -fm.Swarm(point_size=)defaults to4, matchingmark_swarm(size=4)(wave 7 close, #161). Before:5.0. Achart.transform(fm.Swarm(...)).mark_point()with nopoint_size=now packs centres4 + spacingpx apart and draws radius 2 px (before:5 + spacingpx, radius 2.5 px), identical tomark_swarm()'s default. An explicitpoint_size=is unchanged. Seeferrum-spec.md's 2026-10-04 note. - Figure and composite legends gain real titles (wave 7 close). Legends bound on a layer were untitled; each figure now titles its own:confusion_matrix_chartProportion(Countwithnormalize=None),class_prediction_error_chartPredicted class,discrimination_threshold_chartMetric,decision_boundary_chartPredicted probability(proba=Truewithpredict_proba) orClass,silhouette_chartCluster,intercluster_distance_chartClusterplus a new size legendCluster size,rank2d_chartCorrelation(Covarianceforalgorithm="covariance"),shap_waterfall_chartSHAP sign, a multiclasspdp_chartClass,compare=cv_scores_chart/importance_chart/shap_bar_chartModel, andparallel_coordinates_chart(hue=c)the columnc. A filled bivariatemark_density/mark_contour(andjointplot(kind="kde")) titles its colorbarDensity, andmark_hex(andjointplot(kind="hex")) the aggregated column, orCount. Each added title shifts its legend body down by one title line.mark_importance(color_field=)also accepts a channel such asfm.Color("model", title="Model"). -mark_hexrefuses acolor=it would not draw (wave 7 close). A chart-levelcolor=must name the aggregated column (supplyingfieldwhen omitted, as before) or Hex'svalueoutput column; its title, scheme and legend then style the cell colours. Any other, including anycolor=with the defaultaggregate="count", raisesValueError: mark_hex: color='cat' is drawn nowhere; the cells are colored by aggregate='count'. Bind color= to the aggregated column, or drop it.Before: accepted and drawn nowhere (it only retitled the count colorbar). The color'sscheme=paints the cells ascmap=does; ascheme=with a differentcmap=refuses. - Style kwargs a mark would not draw refuse at every door, in the voice of the call you made (wave 7 close). The per-mark honored-kwarg rulemark_<name>(...)already applied now also holdsfm.Layer(mark_kwargs=)(voicedLayer), a figure'smark=dict,lmplot/regplot'sline_kws=andscatter_kws=, a composite'slayer_kwargs=, andChart.override(mark_<leaf>=). Before, each accepted a kwarg its mark never draws and rendered as if it were absent. Examples:relplot(..., mark={"interpolate": "step"})on a scatter now raisesrelplot: keyword argument 'interpolate' is not honored by mark_point. Honored: [...];lmplot(..., line_kws={"filled": True})raiseslmplot: keyword argument 'filled' is not honored by mark_line. ...;fm.Layer(mark="point", mark_kwargs={"bogus_kw": 1})raisesLayer: unknown keyword argument 'bogus_kw'. ...;mark_line().override(mark_shape="square")raisesFerrumOverrideErrorat render:Chart.override: keyword argument 'shape' is not honored by mark_line. .... Aliases now resolve on these doors too, sofm.Layer(mark="line", mark_kwargs={"color": "red"})androc_chart(mark={"line": {"alpha": 0.5}})draw red and half-opaque where before the alias reached the renderer unread. Amark=style dict on a compound figure (pairplot,jointplot) now reaches every panel whose mark honors it (before: dropped silently), andjointplot(kind="hist", joint_kws=...)passes its style to the 2D-histogram cells instead of dropping it.FerrumOverrideErroris now aValueErrorsubclass. A visualizer's malformedmark=refuses atfit()(before: atshow()). - A figure'smark=override for a sub-layer the call does not draw refuses (wave 7 close). Before: a catalogued sub-layer the figure never emitted swallowed any style aimed at it. Now style for an undrawn sub-layer refuses, e.g.roc_chart(..., annotate_auc=False, mark={"auc_label": {"opacity": 0.1}})raisesroc_chart(mark={'auc_label': ...}): this call draws no 'auc_label' sub-layer, so nothing would take the style; it draws ['line', 'reference']; dropping it (False) or an empty dict is still accepted. The figure-drawn metric label is now the named sub-layerauc_label/ap_label/brier_label, soroc_chart(mark={"auc_label": {"font_size": 14}})styles it (before: accepted and ignored). A non-dict value (mark={"line": 5}) raisesValueErrornaming the figure (before: a rawTypeErrorwith no entry), an unknown name raisesroc_chart(mark={'bogus': ...}): unknown sub-layer 'bogus'; this chart's sub-layers are ['auc_label', 'line', 'reference'](before:Unknown sub-layer 'bogus'; ...without the figure), amark=that drops every sub-layer refuses (before: a Rust panic, or an empty chart), and a compound figure refuses amark=key no panel takes. The same rule holds a composite'slayer_kwargs=: style aimed at a layer the call did not draw (mark_boxplot(outliers=False, layer_kwargs={"outlier": {...}})) refuses at render with the same text,mark_boxplot(layer_kwargs={'outlier': ...}): this call draws no 'outlier' sub-layer, so nothing would take the style; it draws ['box', 'lower_cap', 'median', 'upper_cap', 'whisker'], and a non-dictlayer_kwargs=raisesValueError(before:TypeError). -heatmap,clustermapandpairplotrefuse a decimal column (wave 7 close). The value columns are now the integer and float columns Rust'sLinkageandReorder(axis="columns")read. ADecimalcolumn raisesheatmap: column 'd' is a decimal column (Decimal128(38, 1)); a numeric column must be an integer or float column, so cast it to float first(likewiseclustermap:,pairplot:,linkage:,stat_reorder:). Before:heatmap/clustermapcounted it as numeric and failed later in Unpivot (stat_unpivot: value_vars have heterogeneous non-numeric types: ...), andpairplotfailed at render (column 'd' has unsupported dtype: Decimal128(38, 1)). - The+conditional-collision refusal states the one-per-channel rule (wave 7 close). Two operands ofchart + chartthat each declare a conditional on one wire channel still refuse; the reason in the message changes. Before:... both declare a conditional on the 'color' wire channel -- the conditional on the merged wire applies to every layer's marks, so there is no per-layer scope to keep the two apart; a channel can carry only one conditional. .... After:chart + chart: the left chart's conditional on selection 's1' and the right chart's conditional on selection 's2' both declare a conditional on the 'color' wire channel -- the merged chart holds one conditional per wire channel, whichever layers each would reach; a channel can carry only one conditional. Drop one of the two declarations, or move one to a different channel.Code matching the old text must update. - One Rust table decides which style fields each mark draws, and every door accepts exactly those (wave 7 close). Before: Python kept its own per-mark sets, and every mark accepted the text fields,corner_radiusandblendwhether it drew them or not;fm.Layer(mark="ribbon")andfm.Layer(mark="polygon")accepted any style field; a composite's catch-all accepted that shared set plussize; and a hand-built spec's unknownmark_stylekey was silently dropped. Each such field rendered as if it were absent. After:mark_*(),fm.Layer,.override, a figure'smark=and*_kws,layer_kwargs=and every composite catch-all accept exactly the fieldsferrum._core.mark_style_fields(mark)lists, with the refusal text unchanged in form. Newly refused, for example:mark_point(font_size=12)(mark_point: keyword argument 'font_size' is not honored by mark_point. Honored: ['blend', 'fill', 'filled', 'opacity', 'shape', 'size', 'stroke', 'stroke_cap', 'stroke_dash', 'stroke_join', 'stroke_width']),mark_line(fill=),mark_text(stroke=),mark_area(stroke_dash=),mark_image(opacity=),fm.Layer(mark="ribbon", mark_kwargs={"cmap": ...}), and.override(mark_font_size=...)on a bar (Chart.override: keyword argument 'font_size' is not honored by mark_bar. ...). Newly accepted, because the mark draws them:mark_image(cmap=, width=, height=), andstroke_cap=/stroke_join=on every mark the table lists (before: onlymark_linetookstroke_cap=). A composite spreads each field only onto the marks it emits that draw it (before: onto every emitted layer, where a mark that does not draw it ignored it), and a field none of them draws refuses:mark_boxplot(cmap="viridis")raisesmark_boxplot: keyword argument(s) ['cmap'] are drawn by no mark this call draws (['point', 'rect', 'rule', 'tick']), so nothing would take them. A hand-built spec refuses an unknownmark_stylekey when it is parsed (unknown field `bogus_kw`, expected one of ...), and a field its mark never draws at render (mark_point: font_size has no effect on a point mark; a point mark draws size, stroke, ...). Violin's never-drawn internalfill_opacityis removed, with no change to any render. -orient=is an argument ofmark_bar()andmark_tick()only, and its value is checked (wave 7 close). Before:fm.Layer(mark="bar", mark_kwargs={"orient": "horizontal"})and.override(mark_orient="horizontal")were accepted and drew nothing, and anyorientvalue other than"horizontal"drew a vertical bar. After: every door but the method refuses it, naming the method (mark_bar: keyword argument 'orient' is an argument of mark_bar(), not a layer style; set it through mark_bar(orient=...)), andmark_bar(orient="diagonal")raisesmark_bar: orient must be one of ['horizontal', 'vertical']; got 'diagonal'.zero=is a bar style field accepted at every door; on a single bar chart a door-suppliedzerois consumed exactly asmark_bar(zero=)consumes it. - A field only ferrum's own code sets refuses at the style doors, naming the call that sets it (wave 7 close).detail,clipandvalue_axispassed tofm.Layer(mark_kwargs=),.override, a figure'smark=orlayer_kwargs=raise, e.g.mark_line: keyword argument 'detail' is not a style kwarg; set it through encode(detail=...),... 'clip' is not a style kwarg; set it through mark_function(clip=...), andmark_area: keyword argument 'value_axis' is not a style kwarg; set it through the orient= of the statistical mark that draws it. A hand-built spec still sets them on the wire. - Every style refusal names the call you made,fm.Layerand.overrideincluded (wave 7 close). Before:fm.Layer(mark="point", mark_kwargs={"font_size": 3})refused asmark_point: ..., naming a method the caller never called, andChart.overriderefusals came in two forms: a style refusalChart.override: keyword argument 'font_size' is not honored by mark_point. ..., and path refusals with no call named at all (Unknown override path 'x_axis_lable_angle'. Did you mean: 'x_axis_label_angle'?,coord_* override (ratio) is not a field of CoordPolar. ...,mark_* override (opacity) is ambiguous on a multi-mark chart: ...). After:fm.Layerrefuses asLayer: keyword argument 'font_size' is not honored by mark_point. Honored: [...](a constantsizeasLayer(size=...) must be a positive number; received 0), and every.overriderefusal beginsChart.override:, e.g.Chart.override: Unknown override path 'x_axis_lable_angle'. Did you mean: 'x_axis_label_angle'?.FerrumOverrideErroris still aValueError, still the type.overrideraises, and still built from a message,FerrumOverrideError("..."); what.overrideraises is a private subclass that a figure re-voices, so an override a figure renders on the caller's behalf names that figure. Code matching these messages by text must update. -mark_bar(zero=None)keeps the bar's zero anchor (wave 7 close). Before:zero=Noneon a single bar chart, throughmark_baror any door that styles it (.override(mark_zero=None), a figure'smark=), was read as false and dropped the zero anchor, so the value axis started at the data minimum. After:Nonemeans unset, as it does for every style field and on a layered bar, so the bar stays anchored at zero exactly as with nozero=at all.zero=Falsestill drops the anchor. -mark_contour(fill=, smooth=),mark_density(fill=, cumulative=, smooth=)andmark_qq(dequantize=)take only a truth value (wave 7 close). Before:mark_contour(fill="no")drew filled contours andmark_density(fill="red")drew a filled area, each reading the string for its truthiness, whilemark_contour(smooth="no"),mark_density(cumulative="no"),mark_density(smooth="no")(xandyencoded) ormark_qq(dequantize="no")failed at render with PyO3's argument type error. After: each refuses at the call, e.g.mark_contour: fill must be True or False; got 'no'andmark_density: fill must be True or False; got 'red'(a density's fill color iscolor=); a figure that draws the density refuses in its own voice (displot(kind="kde", fill="red")raisesdisplot: fill must be True or False; got 'red').Nonemeans the default;True,Falseand numpy bools draw as before. One drawing moves:mark_density(fill=None), and sodisplot(kind="kde", fill=None), draws the default filled area (before: a line,Noneread as false). -fm.Layer(mark=)must be a mark name, and a mark-lessfm.Layeris held to the point's fields (wave 7 close). Before: a non-stringmark(the docstring advertised aMarkSpec) failed only at render, and a mark-less layer'smark_kwargswent unchecked. After:fm.Layer(mark=3)raisesLayer(mark=...): a layer's mark is a mark name such as 'point' or 'line'; got 3at construction, andfm.Layer(mark_kwargs={"font_size": 9})raisesLayer: keyword argument 'font_size' is not honored by mark_point. ..., since a mark-less layer draws a point. - A style value outside its vocabulary refuses (wave 7 close). Before:stroke_cap=/stroke_join=values outside the vocabulary were dropped at render, and an unknownmark_raster(blend=)value drew as"normal". After: each refuses at the door,mark_line: unknown stroke_cap 'flat'; expected butt|round|square(likewisestroke_join, andmark_point: unknown blend 'multiply'; expected normal|alpha|additive). - A style refusal at render fires for every layer, empty ones included, before any geometry refusal (wave 7 close). Before: render checked a layer's style only while drawing a panel with rows, so a hand-built or saved spec whose layer was left with no rows (by its filter or its data) or whose panels were all empty rendered with the malformed field unchecked, e.g. amark_styleof{"blend": "bogus"}, an unknownstroke_cap,stroke_joinorinterpolate, an unparseable color, a refused constantsize, or a field the mark does not draw. After: every layer's style is resolved once per chart, before any panel is drawn, so each refuses whatever its rows, e.g.layer 1: mark_line: unknown blend 'bogus'; expected normal|alpha|additive. When one chart has several faults, a style refusal now comes before a swarm, position-adjustment or positional refusal, and every layer's style refusal before any panel's geometry. A hand-built spec's unknownblendrefuses at render in this voice, asstroke_capdoes (before: a serde parse error naming no mark or layer). - A layer's blend moves from the wireLayer.blendtomark_style.blend(wave 7 close).mark_raster(blend="additive")now writes"mark_style": {"blend": "additive"}on its layer.mark_raster(blend=)defaults toNone, unset, which draws as"normal"(before:"alpha"), and a value given is written as given, soblend="alpha"orblend="normal"now appears in the spec JSON where before"alpha"was left out; Rust reads"alpha"as"normal", and every such chart renders as before. A hand-built or saved spec whose layer carries the old"blend"key refuses when it is parsed (unknown field `blend`, expected one of `mark`, `encoding`, ...), as does any other unknown layer key (before: dropped); move the value into the layer'smark_style. - A conditional restyles only the marks that declared it, on every channel (wave 7 close). Before: in the interactive view, only asizeconditional was scoped; acolor,opacityor other conditional declared on one chart ofa | b(or one layer ofa + b) restyled every mark in every panel when its selection fired, the other side's marks takingif_selectedorif_nottoo. After: a conditional reaches only the marks of the chart orfm.Layerthat declared it; a chart-level conditional (a.layer()host's,fm.SecondaryY's) still reaches every layer attached to it. Linked views keep working by declaring the conditional on each chart over the shared selection. A figure'smark={name: False}that drops every layer a conditional was declared on drops the conditional with them; before, the conditional was left with no owner and restyled every remaining layer. On the scene wire,MarkBatch.size_conditionalsbecomesconditionals, listing every conditional the batch answers to, and a scene without conditionals is byte-identical. - A selection reacts only to input on the panels of the chart that declared it (wave 7 close). Before: a click or brush on any panel of a composition drove every selection of its kind, so ina | ba click onbchangeda's selection. After: each scene selection lists its owner panels (every facet panel of the declaring chart; an overlay group owns as one), and only input there drives it. A selection shared by name across charts (linked views) becomes one scene selection owning the union of their panels, where before each chart appended its own copy. A single-panel scene's selections are byte-identical. - One selection name with two different definitions refuses (wave 7 close). Before: within one chart or across+, the first definition silently won; across a composition, both sat in the scene under one name. After:add_selection(),add_params(),encode(),Chart.layer(),Chart.conditional(),+and every composition refuse, naming the differing fields:hconcat: selection 's' is declared twice with different definitions: chart 1 of hconcat declares nearest=False, chart 2 of hconcat declares nearest=True. One name is one selection across the composition: share one selection between the charts, or give each its own name.(within one chart:add_selection(): selection 's' is declared twice with different definitions: first declares type='point', second declares type='interval'. ...). Two identical declarations under one name still link. - A style refusal raised while a figure or visualizer builds its chart names that call, for everyjointplotkind (wave 7 close). Before:jointplot(joint_kws={"bogus": 1})raised in the voice of the cell's mark (mark_point: ...), and withkind="kde"it raisedmark_density: ..., once the lazily built cell resolved. After: every kind raisesjointplot: unknown keyword argument 'bogus'. Honored: [...], forjoint_kws=andmarginal_kws=alike. A mark method called directly still speaks asmark_<kind>. Undercompare=, every refusal names the model whose panel refused, a style refusal included, ahead of the figure's voice:silhouette_chart(model, X, compare={"m2": other}, mark={"bogus": {}})raisescompare={'base': ...}: silhouette_chart(mark={'bogus': ...}): unknown sub-layer 'bogus'; this chart's sub-layers are ['rect', 'reference'], and a refusal that fires only form2(an undrawn sub-layer, a style none of that panel's marks draws) namesm2the same way. Separately, a figure function or visualizer refuses a malformedmark=(SHAPBeeswarmVisualizer(mark=...) must be a dict, of mark kwargs or of sub-layer names to their mark kwargs; got int) before it computes anything from the model; before, the SHAP step ran first, so a model SHAP rejected raised SHAP's error instead. - Sub-layer refusals share one wording on both doors, a style dict no layer takes names every key and every layer, andFerrumOverrideErrorstill takes a message (wave 7 close). These change the text of refusals described above. A figure'smark=and a composite'slayer_kwargs=refuse an unknown or undrawn sub-layer with one set of messages, each echoing the sub-layers the call aimed at. Unknown,mark=: beforeroc_chart(mark=...): unknown sub-layer 'bogus'; this chart's sub-layers are [...], afterroc_chart(mark={'bogus': ...}): unknown sub-layer 'bogus'; this chart's sub-layers are [...]. Unknown,layer_kwargs=: beforemark_smooth(layer_kwargs=): unknown sub-layer 'lines'; mark_smooth draws ['line', 'metrics', 'ribbon']. Pass style ..., aftermark_smooth(layer_kwargs={'lines': ...}): unknown sub-layer 'lines'; this chart's sub-layers are ['line', 'metrics', 'ribbon']. Pass style that should reach every layer as a plain mark kwarg instead, e.g. mark_smooth(opacity=0.5).; with no named sub-layers, beforemark_histogram(layer_kwargs=): unknown sub-layer 'bar'; mark_histogram draws no named sub-layers, so it has nothing to aim at. Pass style ..., aftermark_histogram(layer_kwargs={'bar': ...}): unknown sub-layer 'bar'; this chart has no named sub-layers to aim at. Pass style .... Undrawn,layer_kwargs=: beforemark_boxplot(layer_kwargs=): this call draws no ['outlier'] sub-layer, ..., aftermark_boxplot(layer_kwargs={'outlier': ...}): this call draws no 'outlier' sub-layer, so nothing would take the style; it draws [...](themark=text is unchanged). A figure'smark=style dict on a chart with unnamed layers that no layer takes now names the call and every refused key once, then gives one line per layer naming its mark, its reason for each key and the fields it takes:relplot: no layer of this chart takes ['bogus', 'font_size']:followed bymark_point: unknown keyword argument 'bogus'; keyword argument 'font_size' is not honored by mark_point. Honored: [...]andmark_line: unknown keyword argument 'bogus'; keyword argument 'font_size' is not honored by mark_line. Honored: [...], each on its own line. A constantsizesuch a layer never draws gives that mark's size rule there, with the call named only at the head (mark_rule: keyword argument 'size' has no effect on mark_rule; received 3. Set stroke_width= instead). Before: only the first such key was refused, against the first layer's mark alone (relplot: keyword argument 'font_size' is not honored by mark_point. Honored: [...]), as if the other layers' fields were wrong too. One key on a chart of one mark refuses as before. When several keys of one style dict refuse atfm.Layer(mark_kwargs=), a figure'smark=or.override(mark_*=), the refusal is for the first in the caller's order; before, a key onlymark_bar()/mark_tick()takes (orient) was refused ahead of an earlier key.FerrumOverrideError("...")still builds from a message.mark_densitydeclaresfill=True,cumulative=Falseandsmooth=Trueas keyword parameters in its signature; the values it accepts and draws are unchanged. - A style key set toNoneno longer refuses at a door that takes the key (wave 7 close).Nonemeans the key was not set. A figure'smark=dict on a layered chart whose layers draw no size: before,mark={'size': None}refused askeyword argument 'size' is not honored by mark_<mark>, whilefm.Layer(mark_kwargs={'size': None})read it as unset; after, it is unset there too and styles nothing.mark_bar(orient=None)andmark_tick(orient=None): before, refused withorient must be one of ['horizontal', 'vertical']; got None; after, they draw exactly as with noorient. A composite mark's catch-all style (mark_smooth,mark_boxplot,mark_errorbar,mark_histogram,mark_function): before, a field set toNonethat none of its emitted marks draws refused askeyword argument(s) [...] are drawn by no mark this call draws, andsize=Noneonmark_smooth,mark_errorbar,mark_histogramormark_functionraised a rawTypeError: argument 'size': must be real number, not NoneType; after, both are unset and the chart draws as without them. The same composite catch-all also merges onto a layer's own resolved style, not only onto the refusal check: before,mark_smooth(ci=0.95, opacity=None)overwrote the confidence band's built-inopacity=0.3withNone, drawing the band fully opaque; after, aNonein the catch-all never overrides a desugar's own default, on every composite and diagnostic chart that spreads a catch-all style over its emitted layers, and a non-Nonecatch-all value still overrides as before. A key that is not a style of the door at all (a typo, a field the mark never draws, an internal field,orientoffmark_bar()/mark_tick()) still refuses whatever its value. - A style value set toNonenever erases a value already set, on every door (wave 7 close). Before: a door that merges a caller's style over a style already set wrote theNoneover it.mark_point(opacity=0.3).override(mark_opacity=None)and.override(mark_opacity=0.3).override(mark_opacity=None)drew at opacity 1;mark_smooth(ci=0.95, layer_kwargs={'ribbon': {'opacity': None}})drew the band at opacity 1 instead of its 0.3, and besideopacity=0.5the band ignored that 0.5;lmplot(mark={'ribbon': {'opacity': None}})drew the band at opacity 1 instead of 0.3; a figure'smark={'opacity': None}erased each layer's own opacity; andmark_swarm(size=None)raised a rawTypeError: float() argument must be a string or a real number, not 'NoneType'. After: each keeps the value already set and renders byte-identical to the same call without theNone,mark_swarm(size=None)draws at the default diameter 4, a non-Nonevalue still replaces as before, and a typo, undrawn or internal key still refuses whatever its value. A refusal spanning layers names each reason as its own sentence, and its size reason comes from the size rule itself. Before: a layer's reasons were joined with;, so the size rule's remedy ran into the next reason, as inmark_rule: keyword argument 'size' has no effect on mark_rule; received 3. Set stroke_width= instead; unknown keyword argument 'bogus'. Honored: [...]. After: each reason is a sentence of its own, as inmark_rule: keyword argument 'size' has no effect on mark_rule; received 3. Set stroke_width= instead. Unknown keyword argument 'bogus'. Honored: [...], andmark_point: keyword argument 'font_size' is not honored by mark_point; keyword argument 'interpolate' is not honored by mark_point. Honored: [...]now readsmark_point: keyword argument 'font_size' is not honored by mark_point. Keyword argument 'interpolate' is not honored by mark_point. Honored: [...]. A line with one reason is unchanged.ferrum._core.mark_size_reason(mark, size)publishes the size rule's reason clause with no call name, from the same source as the full refusal. A set (non-None)mark_swarm(size=)now goes through the same shared finite-positive-size validator every other mark method'ssize=uses: before,mark_swarm(size="big")raised a raw, unvoicedValueError: could not convert string to float: 'big'andmark_swarm(size=True)was accepted and drew at diameter 1; after, every non-positive, non-finite,bool,stror other non-number value refuses asmark_swarm(size=...)(e.g.mark_swarm(size=...) must be a positive number; received 0), and a positive finite real number, including a numpy scalar, is unaffected. -
A constant
size=of 0 or below refuses onmark_lineandmark_point(wave 7, #116). Both marks now refuse at the shared numeric kwarg check inMarkBase.__init__that already refuses NaN, in that check's own voice:mark_line(size=...) must be a positive number; received -4(andmark_point(size=...) must be a positive number; received 0). A positive constantsize=is unaffected. Disclosed as a behaviour change on both marks: at the released version (v0.23.0),size=was inert onmark_line—line.rsnever read it back, somark_line(size=-4)andmark_line(size=0)rendered at the theme stroke width, like any unsized line — andmark_point(size=0)drew ar="0"dot with no diagnostic; both now raise instead of rendering (user ruling 2026-10-01). A hand-built wire spec reaches the same rule at render:mark_linerefuses a constant size that is zero, negative or not finite, andmark_pointone that is negative or not finite (zero stays legal on the wire, where an internal annotation carrier uses it), in the voicemark_point(size=...) must be a non-negative number; received -4, prefixedlayer {i}:on a layered chart. Every other primitive mark refuses any constantsize=; see the next bullet. - A constant
size=refuses at construction on every primitive mark that does not draw it (wave 7, #116).size=used to be a universal mark kwarg: every one of the 13 primitives accepted it, but onlymark_pointandmark_lineever read it back — on the other eleven (mark_area,mark_bar,mark_rule,mark_text,mark_tick,mark_rect,mark_segment,mark_arc,mark_image,mark_geoshape,mark_label) it was accepted but inert. It now refuses with a typedValueErrornaming the mark and the value received, and, where that mark has an analogous width/font kwarg of its own, pointing to it:mark_rule(size=...) has no effect on mark_rule; received 20. Set stroke_width= instead.(likewisestroke_width=formark_segment,font_size=formark_text/mark_label,band_size=formark_tick/mark_rect);mark_area,mark_bar,mark_arc,mark_image, andmark_geoshapehave no such analog and refuse with just the first sentence, e.g.mark_bar(size=...) has no effect on mark_bar; received 3.(user ruling 2026-10-02).mark_point,mark_line, and point'smark_circle/mark_squarealiases are unaffected. A composite, statistical or diagnostic mark whose**mark_kwargscatch-all receivessize=refuses it with the same voice when none of the marks it emits drawssize(user ruling 2026-10-03):mark_density(size=5)raisesmark_density(size=...) has no effect on mark_area; received 5.at render, the first point its emitted marks are known (likewisemark_histogram,mark_errorband,mark_errorbar,mark_violin,mark_hex,mark_contour,mark_raster, and every other composite with no point or line among its marks). Before, all of these accepted it and rendered byte-identically to nosize=. A composite that emits a point or line keeps honoring it on those marks:mark_smooth(size=40)draws its fit line2*sqrt(40/pi)px wide, andmark_qq/mark_boxensize their points. Where a composite takes asize=of its own it is a named parameter with its own meaning (e.g.mark_boxplot(size=)'s box-width fraction,mark_swarm(size=)'s dot diameter), consumed before the catch-all ever sees it. - A line that binds both
sizeandstroke_widthrefuses (wave 7, #116). Before:stroke_widthsilently won andsizewas dropped (a constantsize=was inert on lines anyway). After: sincesizenow sets a line's width, a line layer that binds both, each as a field or a constant kwarg in any mix, raisesValueErrorfromto_svg(),to_png(),save()and.interactive()(user ruling 2026-10-01):mark_line: size and stroke_width both set the line's width (size='v', stroke_width=3); bind only one. size= sets a dot-diameter width that can taper along the line; stroke_width= sets a width in pixels.A field renders as'name', a constant as its number, a line's own size conditional asfm.when(...), and a layered chart prefixeslayer {i}:. A line a composite mark or figure function emitted names that public call in place ofmark_line:mark_smooth(ci=0.95, size=40, stroke_width=3)raiseslayer 1: mark_smooth: size and stroke_width both set the line's width (size=40, stroke_width=3); ..., and a composite that lowers to one unlayered mark names itself with no prefix,mark_smooth(size=40, stroke_width=3)raisingmark_smooth: size and stroke_width both set .... The same holds after the chart is placed beside others by+,.layer(),fm.layer, an independent-yLayerChartorhconcat. Every figure function that draws a line names itself on every layer and every panel it draws:lmplot,regplot,residplot,relplot,displot,jointplot,pairplot,roc_chart,pr_chart,calibration_chart,gain_chart,lift_chart,discrimination_threshold_chart,pca_scree_chart,elbow_chart,cluster_diagnostics,pdp_chart,learning_curve_chart,validation_curve_chart,alpha_selection_chart,parallel_coordinates_chartandprediction_error_chart, sorelplot(kind="line", mark={"size": 40, "stroke_width": 3})raisesrelplot: size and stroke_width both set .... On the wire a layer a composite or figure function emitted carries an optionalentrynaming that call, and a chart that is one unlayered mark carries it at the top level (ChartSpec.entry); both are absent on what the caller declared, so those specs are unchanged, and the static and interactive output of every chart is unchanged. When such a flat chart is merged with others, its entry moves onto the one layer it contributes, so it never names another operand's layers. The theme's width never counts as bound. Only a line layer that binds both itself refuses: a+sibling'ssizebinding never reaches another layer at all (bindings stay on the layer that declares them, per the layer-encoding model above), somark_point().encode(size="v") + mark_line(stroke_width=3)draws sized dots and a 3 px line in either order, each from its own layer's own binding. A hand-built wire spec reaches the same refusal, since it is decided once in the line mark build. - A numeric category column now bands (#171). A
mark_boxplot,mark_violin,mark_errorbarormark_boxenon an integer, unsigned, float or boolean category column now draws boxes, violins and whiskers at band centres where it previously drew 8px rug-like stubs, and its axis draws one tick per category instead of quantitative ticks. Measured on a 3-categoryInt64column: three box rects previously dropped entirely, and the axis carried 9 ticks instead of 3. Any such chart moves.catplot(native_scale=True)is unaffected and stays quantitative, andmark_tickis unaffected (it is a primitive: it bands on a declared-nominal channel at any dtype and stubs as a true rug on an undeclared numeric).mark_errorbandstays untyped, because itsxis a genuine value axis. stat_letter_value's refusals change wording (#185). They now read "groupby column", the shared validator's wording, where they read "group column" before. Thecatplottest that pinned the oldmust be Utf8refusal flips, re-reasoned rather than re-baselined: it now asserts thatnative_scale=Falsedraws band geometry whilenative_scale=Truecompletes without drawing any, since that path stays deliberately quantitative (filed as #328). Group columns previously refused (every integer, unsigned, float and boolean) now work; a temporal (Date32/Timestamp) group column still refuses.- Two
Float64stack partitions change, both toward the band ladder (#184).-0.0and0.0now share a stack bin instead of stacking twice at one pixel, and a null category keys into its own band instead of merging into the real0.0bin.Utf8stacks are byte-identical. The acceptance guard is re-reasoned rather than widened: it states the contract in the crate's own gate terms, with both directions live and a docstring saying why the old equality was too narrow. - A typed scale class with
nice=Trueand nodomain=now nices, so its ticks move (#153). Measured on the same data: ticks1..9became0..10, and a first time tick of2024-01-04became2023-12-28. Any chart written asLinearScale(nice=True),TimeScale(nice=True),LogScale(nice=True)orSymlogScale(nice=True)with a data-derived domain gets the niced domain it asked for. The explicit-domain case was never broken and is byte-stable. The migration test that documented the gap flips to assert the fix, which is what its own body asked for. sort="-y"underCoordFlipnow sorts by the value, not by the category (#95). Any flipped chart carrying a channel-shorthandsort=changes category order, and the double warning it used to emit becomes one.sort="-x"under flip — the spelling that accidentally worked, naming a channel the caller never authored the value on — changes meaning correspondingly. Thesort=fm.SortField(...)object form is unaffected; it names a field and was always flip-invariant. Theshape,stroke_dashandcolorcategorical domains move the same way, so an axis and the aux legend beside it no longer answer"-y"differently.- A flipped chart with a chart-level
y2/x2places its marks on the axis drawn beside them (#113). Measured on a flippedmark_barwith a chart-levely2, the marks moved from a y scale spanning roughly0..72.9onto the0..3the axis ticks in the same file already read. Only flipped charts move; every unflipped chart is byte-identical. - A flipped area and a horizontal density close their fill on the correct edge (#172(2)). A
CoordFlip'dmark_areapreviously closed on the panel bottom, producing very nearly the complement of the correct filled region;mark_density(orientation="horizontal")reached the same hard-code with no flip at all, where the near-zero tails degenerated the spurious region to a sliver. Both move. A producer-horizontal density underCoordFlipalso moves, by 2.9px of sliver at the left edge, because the two flips must cancel and a disjunction let the flip's word stand alone. - A flipped ribbon draws where it previously rendered nothing (#172(3)).
mark_ribbonunderCoordFliprendered silently empty, andmark_errorband,mark_smooth(ci=), the learning and validation curves and the QQ CI region all went band-less with it. All of those now draw.tests/test_phase_9_e2e/goldens/jointplot_kde_marginals.svgmoved for this: its right marginal now closes flat on its own left edge. - A folded legend's swatches change glyph (#111). Where
stroke_dashorshapeshares its field withcolor, the surviving color legend's entries previously drew identical solid circles and now draw dashed line swatches or the encoded glyphs, so any such chart's legend geometry moves. Three adjacent behaviors change with it: a suppressed channel's explicittitle=is now used instead of silently discarded (and a genuine two-title disagreement warns, with the color channel's winning);color=fm.Color(..., legend=None)with a same-field dash or shape now renders the aux block instead of erasing both; and a colorbar plus a categorical shape or dash now renders the aux block too, because the suppression gate asks whether the color legend enumerates the field rather than whether its scale is categorical. A chart bindingcolor,shapeand dash to one field draws the shape and warns that the pattern was dropped. - All output with hidden or non-Cartesian axis chrome changes geometry (#182, closing #94).
.axis(show=False),fm.Axis(labels=False), and every polar chart gain the plot area their phantom gutters were holding: on a 640x480 chart with 16px padding,.axis(show=False)collapses to exactly(16, 16, 608, 448), where it previously reserved 23.729px per side of phantom title gutter plus a 14.046px phantom label band on y; a polar chart previously reserved 23.214px left and 43.039px bottom. This reverses a prior decision:tests/test_finding_p8.py(2026-08-27 batch) pinned this phantom as "the architecturally correct outcome" and asserted a polar panel's edge equals a single-axis chart's. Both tests are inverted with rewritten rationales, and the reversal is recorded for the campaign's decision-flip audit. - All
jointplotandclustermapoutput changes geometry (#182 follow-on). A marginal or dendrogram now spans exactly the panel it annotates on the axis the two share. Five goldens moved (clustermap_basic,clustermap_row_col_dendrograms,jointplot_kde_hist,jointplot_kde_marginals,composite_figure_title/joint_figure_title), each regenerated and PNG-inspected against its pre-fix rasterization rather than judged alone. A declaration naming a nested composite cell warns (RenderWarning::ExtentAlignmentUnresolvable) instead of dropping silently, and a follower that keeps a legend of its own is still left unaligned rather than drawn across it. - Four layered-bar shapes move, and the scope is narrower than it sounds (#247A). Measured over a 25-shape SHA-256 corpus rendered both ways, what moves is a bar overlaid with another mark whose values extend beyond the bar's, which now shares one value axis with it:
bar + point, that pair underCoordFlip, and two faceted layered bars. The moved renders are the ones whose marks agree with the shared value ladder drawn beside them. Byte-identical and explicitly not moved — do not read this as "layered bar output changes", which is measurably false for most layered bars:catplot(kind="bar")and itshue=andcol=variants,catplot(kind="box"), everydisplot(kind="hist")andmark_histogramshape, every non-layered bar,point + bar, plainfm.layer(...),resolve={"y": "independent"}, andbar + lineon one frame with one value column (its union equals the bar's own extent).catplotis exempt by mechanism rather than by luck: its chart-level mark is a placeholder point with no injected scale, so the new gate has nothing to act on. Golden coverage is deliberately not claimed to be uniform: threesecondary_y_axisgoldens do carry the changed shape but are stable by mechanism, since the union skips an independent-y layer on y and reduces to the bar's own zero-anchored extent — now pinned so a break in that skip fails with an explanation rather than silently — and for the shared-y sub-shape no golden exists, so zero movement there is silence andtests/test_layer_union_provenance.pyis the only coverage. - A phantom
nullband disappears, so the remaining bands widen (#247B). Any chart whose positional ordinal column carries unoccupied nulls — including every cross-DataFrame layered chart, where the merge manufactures them — loses that band and one axis label, and its real bands widen accordingly. A genuine null category carrying a real value keeps its own band, unlayered and inside a merge, so a null group and a real0/false/""group remain two categories. Null-free columns are byte-identical. - A layered chart may now draw marks it previously dropped (the ordinal union, user ruling).
Chart({cat: [a, b, c]}) + Chart({cat: [x, y, z]})drew three marks for six rows and now draws six, with six bands ordered by first appearance in layer order. Users will see output change without changing code: band positions and widths move on any layered chart whose layers do not carry identical categories, and axis labels gain the categories that were missing. A layered chart whose layers share identical categories is byte-identical (16 of 16 shapes measured against a real rebuild, with a negative control proving the two builds otherwise differ). The explicit-scale ordinal path is deliberately unchanged. - A per-layer coord is honored, and one that cannot be placed refuses (#172(1)).
fm.layer(bar, point_chart.coord(fm.CoordFlip()))previously dropped the secondary flip silently and rendered the layer unflipped; it now renders flipped.fm.layer(bar, arc_chart.coord(fm.CoordPolar(theta="x"))).interactive()previously raised and now renders. A per-layer coord declaring a panel property (xlim=/ylim=,expand=False,clip=False,CoordFixed(ratio=)) now refuses with a typedValueErrornaming the layer, the coord and the property on the three merged-flat routes — while still rendering on the static shared-y route, where each member is its own composite leaf and nothing is dropped. That asymmetry is deliberate: refusing there would regress a working composition. - Breaking, and a correction to the two entries above: a member's coord on a CATEGORICAL axis (#172(1), completed after the wave's closing review). The two entries above describe what shipped for continuous axes. On an ordinal/band axis the member's marks were still silently dropped, because a band ladder is built by a different mechanism than a numeric extent (
positional_category_union, notnumeric_domain_union) and only the numeric one had been taught to read each layer's own effective coord. Two distinct shapes were affected and they resolve differently. Where the member binds its own columns — a cross-frame merge, whose columns the merge renames — the ladder was enumerated from the member's value column instead of its categories (measured:['a','b','c','40','50','60'], three phantom bands stealing width from the real categories) and the member drew 0 of 3 marks; it now contributes its post-flip categories and draws all of them, on all three merged-flat routes. Where the member binds the same columns as the first member, the exchange asks the panel's quantitative y to hold a categorical column, which one merged panel cannot do: that now refuses with the typedValueErrorquoted in the feature entry above, on staticchart + chartand.interactive(). Previously it rendered a chart with that member's marks simply absent, no error and no warning — while the identical caller mistake spelledfm.CoordFixedrefused loudly.resolve={"y": "independent"}renders it, because a member with its own y slot genuinely can be held. The static shared-y route (fm.layer(...).to_svg()) also rendered it, drawing the member against an unlabelled categorical scale; since the user ruling of 2026-10-01 it refuses with the sameLayerCoordUnplaceabletext as+and.interactive()(wave 6C). - Breaking:
CoordFlipcomposed with an explicitStack(value_axis=)(wave-5 closing review). The declaration is a statement about the series as authored and the flip transforms it afterwards, so the two compose: a declared axis moves with the flip rather than answering over it.mark_histogram(bins=3, orientation="horizontal", multiple="stack").coord(fm.CoordFlip())previously drew nine rects, four of them sharing oney/heightwith overlapping widths — the bin-start column was cumulated and the count column used as the bin key — and now draws the same three rects as its vertical twin, pixel for pixel. A caller-writtenStack(value_axis="y")underCoordFlippreviously raisedStack: x must be a numeric dtype ...; got Utf8and now renders identically to the undeclared spelling of the same request. Unflipped charts and every chart with no explicitvalue_axis(which is every shape the library itself emits outsideorientation="horizontal") are byte-identical; no golden moved. One deliberate widening comes with it, because the per-layer polar remap reads the layer's effective coord and so also repairs the inherited case:fm.layer(arc_polar, arc_polar)drew nothing at all before, with no merge involved, and now draws — which invertstests/test_finding_p1.py's pin and movesferrum-spec.md§3.2. TheChart + Chartmerge warning narrows from "secondary layer's theme/facet/coord is ignored" to "theme/facet", since the coord is no longer ignored. Themark_arc/mark_geoshaperefusal messages also stop prescribing a fix:"mark_arc requires a Polar coord; add .coord(fm.CoordPolar(...))"became"mark_arc requires a Polar coord", because the prescription was false on exactly the path that mattered — the merged-flat layer reached it with the prescribed call already written and dropped. fm.SelectionMark(stroke_dash="wiggly")now refuses (#124). It constructed silently before, accepting anything. All fourstroke_dash=surfaces now normalize through one helper and refuse junk by naming the entry the caller invoked. This reverses a shipped, reviewed decision (f8148bdc, batch A T9), whose two tests pinned the named linetypes as belonging tolinetype=only; #124 was filed by that batch's own final design review on the same day, dissenting. Both tests are inverted with rewritten rationales citing that commit, and the reversal is recorded for the campaign's decision-flip audit. No value that was accepted before renders differently.- A channel's
title=now reaches every legend (#90).fm.Color("species", type="N", title="Species")previously rendered a legend headedspecies; it now rendersSpecies. This moves any chart that settitle=on a legend-bearing channel — and because a legend's title contributes to its measured width, the plot rect moves with it. The swatch legend, both colorbars, the conditional legend, the facet band and every auxiliary block share one resolver, so they move together. A chart that never settitle=keeps the field name and is unaffected. hue=fm.Color("col")with notype=is now categorical (#130). It previously fell through to a continuous color scale while the bare stringhue="col"on the same column got a discriminating palette. Any figure-level call passing an untypedColoronhue=changes palette.hue="col"and an explicitly typedfm.Color("col", type="Q")are unaffected.pr_chart(iso_lines=True)'s reference curves change color (#121). They rendered in theme blue atopacity=0.6— the line mark's stroke fallback, reached because the_iso_fgrouping key was bound to acolorscale keyed onclassand every lookup missed — and now render in the#AAAAAAthe layer had declared all along. Anypr_chartwithiso_lines=Truemoves.catplot(kind="count", encode={"x": ...})now aggregates the column its axis binds (#192). Alongside the channel-object fix, this closes a latent second defect on the same line: anencode={"x": fm.X("other_col")}override onkind="count"previously counted the column named by the originalx=/y=keyword while the axis renderedother_col, so the bars and their axis disagreed about what was being counted. Measured on the pinning fixture, the override now yields 2 bars (one pergrpvalue) where it previously yielded 4 (one percatvalue). The bare-string path with noencode=override is byte-identical.displot(kind="ecdf", hue=...)renders curves where it could not before (#200). Any call combiningkind="ecdf"withhue=changes from a chart naming a column the transform had discarded to one curve per class. The no-hue path is byte-identical.- Six public-API behavior changes from the
bins=vocabulary (#193). (1)Bin(bins=)is a new keyword-only parameter. (2)mark_histogram(bins=)/desugar_histogram(bins=)likewise. (3)ferrum._core.validate_bin_rule(bins, ctx)is new. (4)repr(Bin("x", bins="fd"))gains a trailing, bins='freedman_diaconis'; every other mode's repr is byte-identical. (5)Bin2D(bins_x=)/bins_y=andKde(count_scale=)now refusebool, non-positive and out-of-range integers, and non-positive/non-finite floats at construction, inherited from hardening the shared parser — these two doors already spoke this vocabulary and were never the subject of the issue, but they gain refusals they did not have, each naming itself (Bin2D: bins must not be a bool (True); …, and the same messages prefixedstat_kdeforKde). Valid values are unaffected. (6)bins=is validated for everykind, sodisplot(kind="kde", bins="auto")anddisplot(kind="rug", bins="auto")now RAISE wherebins=was previously inert on those kinds — the direction matches thestat=precedent, which validates for every kind too, but thebins=docstring scopes itself tokind="hist"andkind="ecdf", so the validation's reach is discoverable only from the unconditionalRaisesentry. A validbins=on those kinds is still accepted and still inert. Separately, on thehist/ecdfkinds themselves, every previously-silent spelling now either bins the way it says or refuses:"fd"/"freedman_diaconis"and afloatbin width now take effect instead of falling back to Sturges;"auto","scott","sqrt","rice","doane","stone","FD"and"fd "refuse withdisplot: unknown bins value 'auto'; expected 'sturges'|'fd'|int|float(no case or whitespace coercion — the vocabulary is closed);True/Falserefuse before the integer arm instead of rendering a 1-bin histogram;0,-3and10**30refuse withdisplot: bins as an int must be a bin count >= 1 within machine range; got 0instead of raising inBin's name or leaking anOverflowError; and0.0,-0.5,nan,infand any non-str/int/floattype refuse by name. Code that passed an unsupported string and silently accepted Sturges will now raise. displot(multiple="stack"/"fill")geometry moves (#194). Every groupeddisplothistogram in these two modes re-bins: each group previously binned over its own data range, so the groups' bars had different widths and no shared edges and nothing actually stacked. Thedisplot_stacked_histgolden's y-axis moves from topping out at 11 (overlapping bars at two different widths) to 19 (10 + 9, genuinely stacked on shared edges).multiple="layer",multiple="dodge", the no-hue"stack"path andkind="kde"are byte-identical.catplot(hue=fm.Color(...), dodge=True)also stops raisingTypeError: Object of type Color is not JSON serializable.- A layer's style is its own (wave 6B,
#119). A layered chart no longer emits a chart-levelmark_style, and Rust no longer falls back from a layer's absent style to the chart's — the batch-A note above already stopped this forfill/stroke; this closes it for the other 24 fields (opacity,size,corner_radius,stroke_width,stroke_dash,font_size,font_weight,align,baseline,dx,dy,angle,interpolate,stroke_cap,stroke_join,filled,shape,limit,band_size,line,borders,leader_line,arrow,arrow_size), so a kwarg-less sibling layer no longer inherits any of layer 0's non-paint style either. Six shapes, measured:mark_point(opacity=0.3, stroke_width=5) + mark_line()now draws the line at full opacity and the default 1.5px width, not translucent and 5px;mark_function(f, clip=False) + mark_point()no longer lets the points escape the panel clip;mark_line().encode(detail="g") + mark_line()no longer splits the second layer by the first layer's grouping column (reversed by the wave-6B close:detailis an encoding shared likecolor, see Fixed);mark_density(orientation="horizontal") + mark_area()no longer forces the second layer to close on the first layer's baseline;mark_point(opacity=.3, stroke_dash=[4,2]).mark_smooth()'s fit line now renders at default style, not translucent and dashed; and aLayerChartnow renders identically on.interactive()andto_svg()(the static overlay tree already had this rule; the interactive merged-flat path did not). A hand-built layeredChartSpecthat sets a chart-levelmark_stylenow has nothing to apply it to — Python'sto_spec()no longer emits a top-levelmark_styleon any layered spec it produces, and Rust's per-layer preparation reads a layer's ownmark_styleonly, soMarkKwargsSpec::without_paintand its Rust-side fallback are deleted outright rather than left as a dead paint-only rule. Flat (no-layers) charts, a layer that sets its own kwargs, and a kwarg-less LHS are all unaffected. residplot's y-axis title changes on every default call (#199). It readresidual— the transform's own output column — and now reads"<y> residual", e.g.tip residual. Nothing else on the chart names the response being residualized, and the spec's contract for this family is the caller's own column names. This is a single<text>node change at identical coordinates; layout is unchanged. It is the one golden this moves (residplot_lowess.svg). Alongside it,lmplot(scatter=False),regplot(scatter=False)and a standaloneChart(df).mark_smooth(...)all change their axis titles fromci_lower/xto the caller's own columns — 33 of the 40 measuredscatter=Falsecells move — andline_kwsstarts taking effect on 28 cells where it was silently discarded, so a call that passedline_kwsand saw no change will now see the styling it asked for.layer_kwargs=outranks**mark_kwargson the layer it names (#199). A composite mark's bare style kwargs reach every layer it emits, including the CI band;layer_kwargs={"line": {...}}aims at one sub-layer. When both name the same key the narrower one wins, per key rather than per call: measured,mark_smooth(ci=0.95, stroke="#0000ff", layer_kwargs={"line": {"stroke": "#ff0000"}})draws the fit line#ff0000while the CI band keeps the#0000ff-derived fill — the catch-all still applies wherever nothing narrower was said, so astroke_width=passed broadly alongside alayer_kwargsstroke=reaches the line too. Both the parameter and this ordering are introduced by this same change, so nothing released depended on the previous behavior; the pre-existing rule that a catch-all beats a desugar's own built-in default (which is what letsmark_boxplot(opacity=0.8)beat a ribbon'sopacity=0.3) is unchanged and re-measured. Note for anyone tracking this wave's unreleased commits: an earlier commit in the same wave added this capability asmark_smooth(line_kwargs=), a slot on one layer of one mark. It was reshaped before release into the general, catalog-keyed door described here;line_kwargs=never shipped and is not accepted —mark_smooth(line_kwargs=...)now raisesTypeError: mark_smooth: unknown keyword argument 'line_kwargs'. Spell itlayer_kwargs={"line": {...}}.- A drawing layer that cannot reach both positional channels now refuses (#201-D), closing twelve silent drops that predate this campaign. The new typed
ValueErrorfires when a layer paints, its mark needs both axes, and the channel it is missing is bound neither on its own encoding nor on the chart encoding it inherits — reaching it only through the new layer-binding fallback is not enough, because that fallback yields a scale, not a plottable field:layer 0: mark_point needs both positional channels, but no 'y' encoding reaches it — a sibling layer binds 'y', which resolves the axis but leaves mark_point with nothing to plot. Encode 'y' on this layer, or on the chart, to draw it.The guard runs after generic x/y resolution, so a channel bound nowhere at all keeps raising the existing channel-level error. Measured by an exhaustive sweep of all 144 ordered two-layer pairs over{point, line, tick, rule} × {x}, {y}, {x,y}, composed through the public+API and rendered: the pre-wave tree rendered 84, refused 48 and silently dropped 12 —tick{x} + point{x}andrule{y} + point{y}among them — while the shipped tree renders 88, refuses 56 and drops 0. The transition census over the same 144 isrendered→rendered 84,refused→refused 48,dropped→refused 8,dropped→rendered 4, and zero compositions that the pre-wave tree rendered correctly are now refused. Four shapes that used to drop a layer now render correctly; eight become typed refusals, so a composition that silently lost a mark will now say so. The sweep ships as a test (tests/test_single_axis_eligibility.py), so the class stays closed by construction rather than by a list of remembered examples — but note what that test asserts: the zero-drop property alone — every one of the 144 pairs either refuses or draws its full complement of marks, counted for all four mark kinds inside the marks group — not the 88/56 split and not the transition census. The shipped0re-runs on any checkout; the pre-wave84/48/12row and the census come from runs against reverted builds and cannot be reproduced from this tree. Scope bound: this closure claim covers the 4-mark × 3-channel × 2-layer space it enumerates — 3-plus-layer stacks, other marks, and polar compositions are outside it. Separately, a(tick + line)layering's y geometry moves: the curve was placed on a fabricated0…1axis and is now placed on its own data's scale (measured polyline y extent(368.316, 416.911)→(24.0, 412.961)on a 480px canvas). displot(x=..., kind="rug", kde=True)renders instead of raising, with a titled density axis (#201-B). The composition previously raisedencoding 'y' expected EncodingSpec, got None. Its density axis is now titleddensity, matching whatdisplot(kind="kde")already titles the same axis. Any code catching thatValueErrorto detect an unsupported composition needs updating.displot(multiple="dodge")renders different geometry (close remediation). Each hue group used to bin over its own data range, so the groups' bars shared no x positions and were not even the same width — two histograms wearing a dodge's name. Measured before on a two-group frame: 9 bars of one width against 10 of another, zero shared x positions. Measured after, on 200 rows in two groups atbins=10: both groups draw 10 bars of equal width 22.57 px on one grid of step 50.16 px, offset from each other by exactly one slot (22.57 px), with no overlapping pairs and the two slots plus their padding spanning the band. Any existing chart usingmultiple="dodge"will look different, correctly so. No golden exercises this path, so none moved.- Every dodged span mark subdivides its band (close remediation, R6) — the widest-radius change in this batch. Any chart whose band axis carries a paired channel (
x+x2/y+y2) underDodgenow draws sub-slots instead of offset full-width spans, not onlydisplot. Two behaviors change beyond the widths: a bar that was silently dropped now renders (a negative slot offset pushed the leftmost bin start below the resolved x-domain, where the unclamped linear scale returnsNaN, the pixel resolved toNone, and the builder skipped the row — a missing bar, not a mis-sized one); and a one-bin dodged histogram now dodges instead of overlapping, because the single-band bail that exists for an undefined median-spacing proxy no longer applies to span rows, which know their interval from the row itself. Null endpoints are preserved on the span path rather than coerced to0.0, since a row with a null endpoint is skipped by the drawer today and would otherwise have started drawing a rect back to the axis origin. A downstream chart built on the old overlapping geometry will look different — correctly so. No golden moved and the full suite is green. - A new
UserWarningon an all-zero-extent bar batch (close remediation, R1). SVG bytes are unchanged in every case, so nothing renders differently — but code running under-W errorwill now raise where it previously got a silent blank panel. The concrete case isimportance_chartwith all-zero importances; see the detailed bullet under Fixed for the measured message and the quiet control. displot(kind="rug", y=..., kde=True)now refuses (close remediation, A2). It previously rendered a bare vertical rug and silently dropped the KDE overlay the caller asked for. It now raises:displot(kind='rug', y='v', kde=True) is not supported -- the kde= overlay is drawn against the variable x= names, and this call binds y= instead, so the overlay has no variable to read. Pass x='v' (kind='rug' draws the same ticks from x= or y=), or drop kde=.Refusal rather than a warning because the overlay is not an ignored knob but a whole requested mark with nowhere to stand — there is no partially-honored reading of it, and a warning would leave a saved file missing the feature it was asked for. A previously-accepted call now raises; the y-oriented density curve that would make it render is an orientation feature, filed rather than built. A superseded "Known limit" sentence in the#201-Bspec note, which described the old silent drop, was corrected in place.residplotaccepts an encoding object forx=/y=(close remediation, B6). A widened public surface at a second entry, deliberately, to matchlmplotand the rest of the family. It also closes a latent title defect the untyped error was masking:residplotbuilt its axis titles from the raw parameter, soy=Nonewould have rendered the title"None residual"and a channel object an object repr, unreachable only because polars raised first.lmplot(x=None)/residplot(y=None)now refuse by name —lmplot(x=None): x names the column to fit and has no default. Pass a column name, or an encoding object wrapping one.— andlmplot(logx=True, x=<channel with its own scale=>)refuses the contradiction rather than silently picking one:two instructions for one x scale. Keep your scale= and drop logx=True, or pass x as a column name and let logx set the log scale.- An empty group-bin no longer emits an invisible zero-height rect (T10b). All four
SceneNode::Rectpush sites in the bar renderer now skip a row whose computed width or height is exactly0.0. The rendered picture is unchanged — a zero-extent rect painted nothing — but the element is gone from the document, so code that counts<rect>elements sees one fewer per empty group-bin. Concretely, a grouped or stacked histogram with an empty cell used to emit<rect x="65.31" y="392.489" width="76.534" height="0" fill="#dc2626"/>for the bin where one group has no rows; thedisplot_stacked_histgolden drops from 14 rects to 13. This is disclosed because it is not hypothetical: two tests in other modules had to be re-expressed against it — one Rust case in the bar renderer that asserted the zero-extent rect existed (its own doc comment had always said "renders nothing"), andtests/test_bug_hunt_stack_value_axis.py::test_horizontal_stacked_histogram_auto_domain_tiles_along_x, which failed withexpected 6 bar segments (3 bins x 2 groups); got 5and now counts drawn segments against a data-derived expectation. Downstream code asserting rect counts on grouped bars may be affected the same way. The check is exact-zero rather than epsilon deliberately: these extents are always(a - b).abs()or.max(0.0)over two scale-lookup pixel values, so an empty-group zero is exactly0.0to the bit, and an epsilon would also swallow a genuinely tiny-but-nonzero bar. - One target-hygiene contract for corrupted classification targets (#203, #206). Nulls refuse typed on the seven
ModelSourceclassification methods and the eight precomputed ones, replacing an unownedTypeErroron string targets, silence on numeric ones, and aNaTrendered as its own class on temporal ones; stray out-of-domain values now warn, naming what becomes of the rows (absorbed as negative on a curve, dropped from the matrix on a confusion matrix);cumulative_gain/lift_curveand zero-match multiclass join the total-mismatch refusal. The model-backedclassification_report_chart/ClassificationReportVisualizer— the one classification surface #203 left outside the contract — now refuses a null-bearingyin the same typed voice instead of leaking scikit-learn's own error (#206), narrowly: the null cell, plus its own total-mismatch cell added in a later fix cycle (see below) — sklearn's ownclassification_reportresolves its class union directly rather than through the stray-value check the other twelve methods run.class_balance_chartstays outside the contract entirely, since it countsyalone with no model to disagree with. Clean targets are unaffected and no golden moved. See the detailed bullet under Fixed for the measured before/after on each cell. classification_report_chart's model path now renders correct numbers for a dtype-mismatched target, and both paths share one class-axis order (#206, #224a). The model path (chart builder andClassificationReportVisualizer._materialize) now translatesmodel.predict's output intoy's domain through the sameclasses_↔encode_valuescorrespondence the batch-G confusion fix built, before calling sklearn — aUtf8/Categorical/Enumyfit against an int-codedclasses_previously madey_trueand the untranslated predictions disagree on type, and sklearn's ownunique_labelsraisedValueError: Mix of label input types (string and number)before any metric was computed; a numericyis byte-identical.class_prediction_error_chartneeded no change — it consumesModelSource.confusion_matrix()wholesale and was already correct by transitivity, verified with a cloned dtype-matrix regression pin. A model exposing noclasses_at all still hands sklearnmodel.predict's raw output, since there is no positional correspondence to translate through, so a non-numericyagainst such a model's numeric predictions can still surface the same untyped sklearn error — a narrower, disclosed instance of #206's own failure family, not closed by this fix. Whenclasses_IS present, a total mismatch between the model's translatedclasses_andy(different labels entirely, not merely different dtypes — e.g.classes_ = [0, 1, 2]againsty = ["c0", "c1", "c2"]) now refuses instead of rendering an 18-row, every-metric-0.0 report in silence; before #206's translation existed this same shape raised sklearn's own loudMix of label input typeserror, so this closes a gap #206 itself introduced for this adjacent shape (fix cycle 5, 2026-09-13). A partial overlap still renders, and so does a model that simply predicts none of the classesyholds on the slice being reported — the check reads the class vocabulary, not the realized predictions. Separately, bothclassification_report_chartpaths now order the class axis by sklearn'sunique_labelsconvention (the raw values' own ascending order); the precomputed path'ssorted(..., key=str)rule — sorting the confusion matrix's already-stringified labels — retires for this figure specifically (and, in the close remediation, onconfusion_matrix_chartas well — see the "One class axis for the whole label-domain family" Breaking bullet). This moves the rendered class-axis order for any precomputedclassification_report_chartcall whose numeric class labels have unequal digit counts, two classes included: measured,{2, 10}moves from10, 2to2, 10and a 12-class target from0, 1, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9to0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, matching the model path. Equal-digit-count numeric labels and any non-numeric target are unaffected; no golden exercises this path (noclassification_reportgolden exists). The label derivation is now total by partition (_curve_frames.report_labels): a null in either array, a mix of ordering families, and a homogeneous family that cannot serve as a class label (unorderable, or orderable-but-unhashable) each refuse with their own typed message, and four shapes that previously rendered — a mixed int/string union, a null-bearingy_pred,complexlabels, andlist/set/bytearraylabels — now refuse;y_true's own shape also gets the 1-D checky_predalready had. See the Breaking bullet above for the measured before/after; theconfusion_matrix_chartasymmetry it describes was subsequently closed by the close remediation ("One class axis for the whole label-domain family"). The documented-divergence test is flipped to assert identity, including at the rendered SVG's y-axis tick order.discrimination_threshold_chart(compare=)renders small multiples, not a pooled panel (#213). The only classification-curve chart that composes rather than overlaying bycolor="model": its colour channel is already spent on the four-metric legend, so N overlaid models have no free channel left to separate them. Callers holding the return value now get aConcatChart(one titled panel per model) where they previously got aChart; the annotated numbers move with it, since each panel's F1 optimum andthreshold_lineare that model's own instead of a single pooledarg_max. This also settles a contradiction the visualizer carried in the open:DiscriminationThresholdVisualizer(GaussianNB, compare={"rival": logistic})reprsbest_threshold=0.5263, best_f1=0.8865(its base model, restricted since batch G) while renderingmax F1 = 0.918 @ t=0.42— the rival's number. The"base"panel now annotates exactly the pair the repr prints. See the detailed bullet under Fixed for the measured row-count and label before/after. Nocompare=golden existed to move, and no test anywhere exercised this call — that absence is why the defect survived; a compare golden and seven pins now cover it.- Group ordering flip.
stat_aggregate,stat_summary,stat_box_stats,stat_error_extent,stat_violin,data_pivot,data_aggregate, anddata_densitynow emit groups in first-appearance order instead of sorted order — this moves the category-axis order, the legend order, and therefore palette assignment for any groupby column that doesn't already arrive pre-sorted. Two goldens moved as a pure element-reorder (byte-length-identical, PNG-blessed); every other fixture in the corpus was unaffected. - Null groupby keys drop out, not pool. For the same eight transforms, a null-keyed row now belongs to no group (with a named warning when the whole groupby column is null) instead of being pooled into its own group. Three exemptions keep their prior pooled/whole-column behavior and gain the same warning instead of dropping rows:
Impute(whole-column fallback),Smooth/Robust(pooled whole-batch fit), and the row-preservingDataStack/JoinAggregate/DataWindowfamily. mark_point(shape=)now reads Int64/Float64/Boolean columns. Previously any non-string dtype silently default-circled every row while the legend still enumerated every category; the reader now resolves real per-row shapes, matching whatcoloralready does.catplot(hue=fm.Color(...), hue_order=[...])composes. Previously this combination raisedTypeErroron every one of catplot's eight kinds.- Composite-mark charts built via
+(mark_qq,mark_violin,mark_boxplot, …) now compose correctly in either operand order; previously only one order rendered correctly for some of these shapes. - A large family of previously-silent accepts now raise typed errors instead: repeated/colliding groupby names across the whole partitioning family and the three dict-emitting transform wrappers; a length-mismatched
scale=domain/range; unparseable config-surface colors and color-range entries; a mismatched time-format-on-non-temporal-scale; a malformedBreakAxisgap (construction and wire); a non-positiveFacetwrap count; an unhonored mark kwarg; a malformed precomputed-diagnostic input shape; an X-lessrank1d/rank2destimator on every algorithm; and an unrecognizedcmap=/scheme=name at desugar time. BreakAxis's pixel model is corrected (#226). Segments now tile the scale's own padded pixel range, and tick labels translate rigidly on their own tick's anchor; every effective break shifts back onto the unbroken chart's own pixels (five goldens re-blessed).BreakAxisannotation clipping is stratified (#228). An extent annotation now clips into visible pieces instead of being suppressed whole; onlyann.bracketstill suppresses whole, by permanent contract.pandas.NaT/numpy.datetime64("NaT")now refuse by name at every Python temporal seam (break gaps, TimeScale dict domains, annotation coordinates), where aNaTpreviously became aNaNthat either reached the wire or failed later with an untyped diagnostic.- Nine
BreakAxisresiduals close (#230). Same-axis specs now merge into one break result and a hidden mark can never be clamped back into view; a vertex-placed mark (line/rule/segment/area border) splits per segment instead of spiking across a gap; a split rounded piece squares its cut edge; a glyph's hide test uses its exact data anchor; a keyed split piece's key suffixes instead of duplicating;BreakAxisnow applies to every facet panel, not only panel 0; a chart combiningCoordPolar/CoordGeowith aBreakAxisnow raisesValueErrorinstead of silently corrupting geometry; andgap=bounds now accept temporal values. ModelSource.embeddings(method="tsne")'s default perplexity adapts ton_samples(#222, N4). Previously the unmodified default (30) forwarded unclamped to manifolds-rs and refused for everyn_samples <= 31; it now resolves tomin(30, n_samples - 2)and renders. An explicit out-of-range/non-positive/non-finiteperplexity=refuses typed namingperplexity,n_samples, and the bound instead of leaking manifolds-rs's"kNN size"message or, for a negative/NaN value, panicking the PyO3 boundary. An unknownmethod_kwargskey now refuses by name per method instead of being silently ignored.- Multiclass
partial_dependenceframes gain rows and a column (#209). EveryModelSource.partial_dependence()frame now carriesclass_label; on a multi-class classifier it also carries K times the rows (measured: 20 → 60 for 3 classes × 2 features × 10 grid points onkind="average"), because every class's curve is now returned instead of class 0's alone. Code that consumed the frame positionally or assumed one row per (feature, grid point) sees the extra rows; regression and binary frames are unchanged apart from the added column. shap_values()numbers a multi-output regressor's outputs (#209). The sharedclass_labelowner now labels aclasses_-less multi-output modeltarget_0 ... target_{n-1}instead of repeating"target", soshap_beeswarm_chart/shap_bar_chart/shap_waterfall_chartstop pooling two unrelated outputs underper_class=Falseand start faceting per output underper_class=True. Measured:shap_bar_chart'sabs_mean_shapmoveda1.181774 → 2.011961 andb1.626124 → 0.268149 on a 2-output random forest, flipping the top-ranked feature. Single-output regressors and classifiers are unaffected. See the detailed bullet under Fixed.- A multi-chunk
pyarrow.Tablecomputes over all its rows, not just the first chunk (N1).rank1d_chart/rank2d_chart/Rank1DVisualizer/Rank2DVisualizerpreviously tookX.to_batches()[0], silently truncating any chunked Table; every raw-data score now matches theModelSourcepath and a single-chunk Table of the same data. Measured: a 200-row fixture in two 100-row chunks moved columnb'svariancescore from 1.169347 (100 rows) to 1.018316 (200 rows). Covariance on a chunked Table no longer refuses with a misleading"y length must match X row count"; an empty 2-column Table no longer returns zero features. - An explicit
mark_discrimination_threshold(optimum_label=True)/(threshold_line=True)refuses on an f1-lessmetrics=(#189). Previously vanished silently (no rule, no label, no error); now raisesValueErrornaming the flag andmetrics=. The un-passed default keeps silently downgrading, at every entry point (mark_discrimination_threshold,discrimination_threshold_chart,DiscriminationThresholdVisualizer) — only a genuinely explicitTruesomewhere in the call chain is affected. - The diagnostics source cache can never return the wrong frame (#224b, N5).
BaseSource._cache_keynormalizesndarray/list/tuplekwargs centrally (content-preserving, no rounding/truncation, and numeric-kind-preserving — an int-valued and an equal-valued float-valued array-like key differently) instead of falling back torepr(); a value still unhashable after normalization is never cached — every call recomputes fresh, and is never stored under its one-off key either, so a reused unhashable value does not grow the cache. Closes four measured collisions: a custom cv splitter's address-reuse (discrimination_threshold), numpy-repr rounding/truncation (learning_curve(train_sizes=)),shap_values(background=...)'sstr(...)[:64]truncation, and an int-vs-floattrain_sizesarray (learning_curve) that Python's cross-type numeric equality would otherwise collide despite sklearn treating the two as different requests.validation_curve's now-redundant local normalization collapses onto the central one. - One metric surface on
roc_chart/pr_chart/calibration_chart(#219, D4).annotate_auc/annotate_ap/annotate_briernow drive exactly one surface, the per-curve endpoint overlay — the chart title's metric suffix and the legend's(METRIC = x)rename both retire, soannotate_*=Falsereally means no metric anywhere instead of leaving it in the title regardless. No metric value changes, only how many times each is printed; eleven phase-10 goldens moved.mark_roc/mark_pr's direct-annotation path is unaffected. Two further contract changes ship with it: re-applying a metric label (chart + fm.AUCLabel()) now replaces the existing label instead of overstriking it, and+ BrierLabel()on a frame with nobriercolumn now refuses instead of silently showing a bin-level statistic under theBrier =label. See the detailed bullets under Fixed for the measured before/after. - One class axis for the whole label-domain family (close remediation cycle 2, finding A).
confusion_matrix_chartandclass_prediction_error_charton precomputedy_true=/y_pred=arrays derive their class axis from the same partitionclassification_report_chartuses, retiringsorted(..., key=str). Two moves: a mixed-family union (andcomplex,list,set,bytearraylabels) now refuses where it rendered — measured,y_true=[0,1,0,1]againsty_pred=["0","1","0","1"]drew four superimposed text nodes per cell over a 16-row frame holding only 4 distinct cell keys — and numeric class labels order by value, not by digit count ({1, 2, 10}:['1','10','2']→['1','2','10']), matching the model path and the report. String-labelled matrices are unchanged; no golden moved. See the detailed bullet under Fixed. classification_report_chart's model path refuses null-bearing predictions (close remediation cycle 2). Previously leaked scikit-learn'sValueError: Classification metrics can't handle a mix of binary and unknown targets; now refuses in the target-hygiene contract's own voice, as its two confusion siblings already did. See the detailed bullet under Fixed.- The confusion family answers what the report family answers (close remediation, finding 2). A null
y_predrefuses onconfusion_matrix_chart/class_prediction_error_chart(both source paths) instead of rendering a'None'/'nan'class of its own; a model whoseclasses_, translated intoy's domain, share nothing withyrefuses instead of rendering all-zero cells behind a 100%-dropped warning; andModelSource.confusion_matrix's no-classes_branch refuses a mixed or unkeyable label union by name instead of leakingTypeErrorfrom inside ferrum. Malformed inputs only — clean targets are byte-identical and no golden moved. The precomputed confusion matrix's ownsorted(..., key=str)class order (and its acceptance of a mixed union) was subsequently retired as well — see the "One class axis for the whole label-domain family" bullet above for that move. See the detailed bullet under Fixed. - Diagnostic error and warning text names the entry you called (close remediation, finding 4). On the model path, target-hygiene refusals and warnings raised through a figure function or a visualizer now carry that entry's name (
roc_chart:,ROCVisualizer:,class_prediction_error_chart:) instead of the source method's (roc_curve:,confusion_matrix:); a directModelSource.roc_curve()call is unchanged. Message text only: no number, frame, or geometry moves. Code matching on the old prefixes needs updating. See the detailed bullet under Fixed. discrimination_threshold(cv=<int>)switches to an unshuffledStratifiedKFold(#211, N2, N3). Replaces the hand-rolled shuffledKFoldthat made the "discrimination_thresholdignoresrandom_state" spec claim false; the new splitter has no seed, restoring that claim (andDiscriminationThresholdVisualizer's matching one) to true. Every integer-cv=call's averaged numbers move; a user-supplied splitter's.split()now receivesy, so a stratified splitter works instead of raisingTypeError; a train fold left with one class now warns by name before the eventual sklearn fit error. See the detailed bullet under Fixed for the measured column-sum before/after.- A hand-built
chart_confignaming a third break axis refuses instead of breaking the x axis (wave 6A,#229(2)).BreakAxis.axisis now typed end to end in Rust, so astructural[]item'saxiskey accepts exactly"x"and"y"; any other token raises a typedValueErrorreading, verbatim,chart config: structural[0] (break_axis).axis: axis must be one of ['x', 'y']; got 'z', where it previously deserialized as a plain string and rendered as an x break with no diagnostic. It refuses at the same array-item value gate as the siblinggapschecks, so it names the item and its index and matchesfm.BreakAxis's own construction-time wording, and it covers both spellings serde accepts for a unit variant ("y"and{"y": null}) — for the map form over every key typejson.dumpscoerces, so abool,None,floatorintkey is refused in the same voice rather than reaching serde. Serde keeps the shape errors and the unknown-variant backstop for a consumer reachingDeserializewithout the gate in front of it. Wire-level only and unreachable from the public Python API —fm.BreakAxishas always validatedaxisat construction, and noChart.override(...)rule targets thestructuralsection, so only a dict passed straight to the privateferrum._corerender entries can reach it. No rendered byte and no break-family warning or refusal message changes for a well-formed chart,BreakAxis(axis="y")'s quoted axis token included. - A cleared fill outranks a color channel on
bar,rect,arcandpolygontoo (wave 6A, #110).fill="none"underencode(color=…)on those marks previously painted the palette; it now paints nothing. That reaches beyond theline/rule/tick/segment/area/point-glyph set the fix was scoped to, because the rule lives in the one per-row fill resolver every filled mark shares. No golden moved (none carries a cleared paint). - A cleared paint stops serializing as a zero-alpha color (wave 6A, #110). The former exception list (the
line/rule/tick/segmentstroke, andarc/area/geoshape/polygon) serialized a user-cleared paint asrgba(0,0,0,0.000). Those marks, andtext/label(whose cleared fill serialized the same way), now follow the rulepoint/rect/bar/ribbonalready followed: a cleared stroke emits no stroke attribute at all, and a cleared fill emits SVG's ownfill="none"(omitting it would paint SVG's default black), on a<text>element too. Visually identical, byte-different. The scene graph'sStrokeStyle.colorandTextStyle.colorare correspondingly optional, and scene JSON for a painted stroke or text node is byte-identical. - A
%-free format declared as time falls back to the temporal default, and the ordinal preset beats a stray time type (wave 6A, #147).label_format=".2f"(or".3e") withlabel_format_type="time"echoed the literal.2fas every colorbar label (and every thinned tick label, reachable only from a hand-writtenchart_config), rendered2001.00on a temporal axis's year labels, and rendered1970-01-01on an independent facet axis. Every site now uses its own temporal default; on a non-temporal axis the pair is now refused as a time format on the shared axis too, as it already was on an independent one. The #133 refusal's message changed for every case it covers, the existing strftime and time-preset refusals included: it now readsformat ".2f" is typed "time", which on the 'x' axis requires a temporal scale, but the resolved scale is not temporal, naming the declared type as the cause, where it previously readformat ".2f" on the 'x' axis requires ...; code matching the old prefix needs updating.format="__ordinal__", format_type="time"rendered ordinals on an axis but1970-01-01on a colorbar and onmark_text, and was refused on an independent facet axis; on a non-temporal field it now renders1st,2nd, … on every surface. A time-typed format on a non-temporal field (fm.Color("n", legend=fm.Legend(format=".2f", format_type="time")),fm.Text("n", format=".2f", format_type="time"), a strftime pattern, or a bareformat_type="time") rendered every colorbar, size-legend and text label as1970-01-01; those surfaces now raise the same refusal, naming themselves (… which on the 'color' legend requires a temporal field, but the field is not temporal). The shape and stroke-dash legends dropped the same pair silently (fm.Shape("g", legend=fm.Legend(format=".2f", format_type="time"))rendered wherefm.Color("g", legend=…)refused); they now refuse it too (on the 'shape' legend,on the 'stroke_dash' legend). Declare the field temporal ("n:T") if the numbers are epoch milliseconds. A string field counts as non-temporal, sofm.Text("s", format="%Y", format_type="time")over a string column, which rendered the strings and dropped the format, now refuses. A bareformat_type="time"on a non-temporal axis (fm.Axis(label_format_type="time")orfm.X("n:Q", format_type="time")) was dropped silently and rendered the scale's numbers; it now refuses too, on the shared and the independent facet axis alike, so the bare type gets one answer everywhere. A barefm.Axis(label_format_type=)now types the shorthandfm.X(format=)beside it (the type used to be dropped), and the merged pair is checked like its one-place spellings:fm.X("d:T", format="%Y", axis=fm.Axis(label_format_type="number"))refuses withinvalid format spec "%Y", asfm.Axis(label_format="%Y", label_format_type="number")does, andfm.X("n:Q", format=".1f", format_type="time", axis=fm.Axis(label_format_type="number"))still refuses as a time format on a non-temporal axis. A legend's time format is refused unless the caller disabled that legend:legend=None,Legend(orient="none")and.configure_legend(orient="none")all exempt it, while a colorbar the renderer suppresses on its own with a warning (onmark_line/mark_ribbon) and a categorical color legend both refuse, because the check is of the spec as written. Axes have no such exemption (fm.X("n:Q", axis=None, format=".2f", format_type="time")refuses), on purpose: anX/YLegend(format=)cascades onto the color field, so checking a legend nobody draws would judge a field the caller never formatted, while an axis format is written on the channel it formats. An untyped%-bearing spec on a non-temporal axis (fm.X("n", axis=fm.Axis(label_format="%Y"))with no declared type) rendered250.000000% …on the shared and independent facet axis whileLegend(format="%Y")andText(format="%Y")refused; the axis now refuses with the sameinvalid format spec "%Y": unrecognized token "Y"(".1%"still renders percentages, and"%Y"on a temporal axis still renders years), and a stroke-dash legend's format is now grammar-checked like a shape legend's. The ordinal preset on a temporal field rendered2001st …on the shared axis, was dropped on an independent facet axis, and rendered959817600000th …on a colorbar, size legend andmark_text; every surface,.configure_axis(label_format="ordinal")included, now refuses it (the "ordinal" format on the 'x' axis formats numbers and requires a non-temporal scale, but the resolved scale is temporal). By the user's ruling on the last two cells, a d3 number format on a temporal field (.2f,,.0f,d, or a"number"-typed preset such as"percent") rendered the calendar year on both axes (2001.00), was dropped on an independent facet axis, and rendered the epoch-millisecond count on a colorbar, size legend andmark_text(959817600000.00); every surface, chart-level.configure_axis(label_format="percent")included, now refuses it (the number format ".2f" on the 'x' axis requires a non-temporal scale, but the resolved scale is temporal; a date pattern (e.g. "%Y") formats a temporal value). Becauseconfigure_axis's format reaches both axes, a percent-valued y beside a temporal x now needs.configure(axis_y=AxisConfig(label_format=…))or the per-channelAxis..2fwithformat_type="time"still falls back to the temporal default, and so does the split spellingfm.X("d:T", format=".2f", axis=fm.Axis(label_format_type="time")). An untyped".1%"on a numeric axis now formats explicit tick values too:fm.X("q", format=".1%", axis=fm.Axis(values=[0.2, 0.6]))rendered0.2,0.6and now renders20.0%,60.0%, as".2f"and the"percent"preset already did. An undeclared"%Y"on a datetime field rendered years on the axes but was refused byLegend(format=)andText(format=); those now read it by the field's temporality and render years too (fm.Text("d", format="%Y")), while on a non-temporal field it still refuses as a d3 spec, and an undeclared".1%"on a datetime field, which the legends and text formatted as a percentage of epoch milliseconds, now refuses as an invalid date pattern. Separately, a literal one-characterlabel_format="\x01"no longer renders ordinals: it was an accidental second encoding of the"__ordinal__"sentinel and is now an ordinary unrecognized d3 type character."ordinal"and"__ordinal__"are unchanged. - Independent-x faceted output moves wherever
cull_thresholdis set away from the default (wave 6A, #146). A direct consequence of the fix above: over a 135-row corpus (15 axis-label shapes × 9 spellings), exactly six rows move, allfacet_independent_x*at thresholds 0, 30 and 500. Every other row, including the independent-x facet at the default and at 8, is byte-identical. No golden moved. - Five previously-silent appearance-channel kwargs now refuse instead of accepting and doing nothing (wave 6B, #123).
title=onOpacity/FillOpacity/StrokeOpacityraisesValueError, naming the channel, since none of the three draws a legend for a title to customize;legend=None/legend=Falseon those three plusStrokeWidth/Anglestay silent (the harmless "no legend" idiom is unaffected), but a truthylegend=value (a dict orLegend(...)) on any of the five now raises the same way. ASize/Shape/StrokeDashlegend value whoseorient=is anything other than"none"now raises, naming the fixed shared-legend-block reason;orient="none"still disables that channel's own legend.StrokeDash(scale=...)carrying an explicitrange=key now raises, naming the fixed 4-slot GPU dash palette (solid plus three patterns) that representation cannot express.FacetRow(columns=...)/FacetCol(columns=...)flip from aUserWarningto the same typed refusal, so a caller relying on the silent drop now gets aValueErrorat construction instead. A wire-shape side effect of the first change:Opacity/FillOpacity/StrokeOpacity/StrokeWidth/Angleno longer emit alegendkey at all, even forlegend=None/legend=False(previously{"legend": {"disabled": true}}) -- no renderer ever read that key for these five, so no rendered output moves. Every other appearance-channel kwarg is unaffected; seetests/test_appearance_kwarg_matrix.pyfor the full cross-surface matrix andferrum-spec.md§3.2's 2026-09-23 notes for the complete before/after. - One aggregate vocabulary reaches every door, one Rust refusal rendering replaces four, and
interpolate=refuses at declaration instead of at render (wave 6B, #137/#176/#165(3)(4), Q5's three surface changes as one).AggFn— the vocabularyBin(agg=),AggregateOp(fn_=),Aggregate, and theaggregate/join_aggregatetransforms all share — now spellsvariance/stdevcanonically withvar/stdas declared aliases everywhere:mark_hex(aggregate="std")worked whileBin(agg="std")refused, andHex(aggregate="stdev")refused whileBin/AggregateOpaccepted it; both directions now work on every door, andAggregateOp's private, undeclared"var"arm (accepted, but absent from its own refusal message) is now a declared alias like every other spelling.Hex/mark_hexaccept ten spellings, not eight ("stdev"/"variance"join"std"/"var");Bin/AggregateOp/Aggregateaccept thirteen, not eleven. The wire (serde) door forAggFn— reached byjoin_aggregate,data_aggregate, andChartSpec.from_jsondeserializing any transform holding anAggFn— now acceptsstd/vartoo, where previously only the canonical spellings parsed there, and refuses an unknown spelling withunknown fn 'x'; expected mean|sum|...instead of serde'sunknown variantlist. Every door keeps its own refusal prefix and noun (Bin: unknown agg,AggregateOp: unknown fn,Hex:/Raster:/Smooth: unknown aggregate/unknown x_estimator) — on the Rust doors, the accepted-set rendering converges to one bare, pipe-joined format in declared order, replacing five prior renderings: raster's quoted, space-joined'a' | 'b'; the internalstat_hexdoor'sexpected one of a/b;Interpolate's comma-joineda, b; hex's own prior barea|b(same shape, now sourced from the registry instead of a second hand-rolled list, soHex(aggregate="stdev")'s refusal text moved too even though its rendering style did not); andSmooth's own prior quoted, pipe-joined'mean'|'median'|'sum'|'min'|'max', now bare.transform_registry(kind)returns five keys instead of four for every kind (methods_needing_fieldis new — a subset ofmethodsnaming which spellings that door refuses without a field, published for every kind that declares one:raster/hex/aggregate/data_windowsplit per method,bin/join_aggregate/data_aggregateand eight more kinds (kde,density_data,error_extent,qq,pivot,impute,top_k,data_stack) declare every method as needing a field, andsmooth/linkage/regression_datadeclare none), andtransform_registry("aggregate")/("join_aggregate")'smethodslist is no longer empty.mark_line/mark_area/mark_ribbon'sinterpolate=all refuse an unrecognized or non-string value at construction now, through one shared gate function, instead ofmark_line/mark_areafailing only once the chart renders andmark_ribboncarrying no Python-side check at all;interpolate=Noneis unaffected on all three (still means "unset").Smooth(x_estimator=)joins the family asXEstimator, a declaredAggFnsubset (mean/median/sum/min/maxonly), published through the newferrum._core.x_estimator_accepted_values()binding;mark_smooth(x_estimator=)now refuses at declaration through the same shared-gate mechanism asmark_ribbon'sinterpolate=gate, instead of deferring to.to_svg().mark_smooth/lmplotrefuse any non-memberx_estimator— string or not — naming themselves ("mark_smooth: x_estimator must be one of [...]; got ..."), not a copy offm.Smooth's own Rust text: every new refusal names the public entry the caller invoked, which for these two doors outranks matchingfm.Smooth's wording, so the rawfm.Smoothpyclass (no Python wrapper) keeps its own"Smooth: unknown x_estimator ..."text and, for a non-string, its own untyped PyO3TypeError(crate-wide and pre-existing on every pyclass constructor door, filed asF16, not fixed here) — a non-string onmark_smooth/lmplotwas the same raw, unnamedTypeErrorbefore this change and is now a namedValueError.RenderConfig.raster_aggregate/mark_raster/mark_hex's eager checks, and the raster no-field hint quoted in their needs-field messages, now readtransform_registry(kind)live instead of a hand-typed Python literal, closing the latent gap where a new Rust raster aggregate could ship without the Python gate ever learning about it. The Python declaration doors keepvalidate_choice's sorted-list wording (mark_raster: aggregate must be one of [...]; got ...), so each language renders its refusals in its own idiom; both name the door and the value.mark_hexrefuses an unknownaggregate=at the call, and its needs-field refusal (composed by the same function asmark_raster's andRenderConfig's, whose text changes frommark_hex aggregate='mean' requires field=...to the full sentence) at resolution, since.encode(color=...)may still supply the field. No already-accepted spelling's behavior changes and no rendered SVG moves for any chart that was already valid; seetests/test_aggregate_vocabulary_matrix.pyfor the full door × spelling matrix andferrum-spec.md's 2026-09-23 dated note (§3.5, transform registry) for the complete before/after. Inset(bounds=...)refusesTrue/Falseand numeric strings, and names the bound it refuses (wave 6B, #239). The bounds classifier ranfloat(entry)before any validator saw the value, soTruebecame1.0and"0.5"became0.5, both of which every sibling validator refuses;"a"raised an unlabeledValueErrorandNoneaTypeError. All five now raise one labeledValueError, e.g.Inset.bounds[0] (left) must be a number between 0 and 1, not str; received 'a'. The accepted set for a bare bound is closed (int,float, other non-boolreal numbers, numpy integer and floating scalars,Decimal); an object that merely defines__float__, a numpy string or complex scalar, or a one-element array is refused by type name. The wire for every accepted input is byte-identical.- Conditional literals and dash lengths refuse what they used to mis-handle (wave 6B, #128). A string on a numeric conditional channel (
size,opacity,stroke_width,stroke_opacity,fill_opacity,angle), including a numeric string such as"0.5", now raisesValueErrornaming the channel (fm.value('red') for channel='size' needs a number, got str: 'red') where it serialized as a color. Aboolliteral is refused on every channel,colorincluded, and a non-string, non-number literal raisesValueErrorwhere it raisedTypeError. Separately, every surface that acceptsstroke_dash=(mark kwargs,annotate_*,SelectionMarkand the conditional) now checks each dash length:"-4,2","nan,2",[4, -2]and[True, 2]refuse at construction where some surfaces accepted them. - Every channel that draws no legend refuses
title=and a legend value, not just the opacity family (wave 6B close, #123).Angle(title=...)raisesValueError(it warned "accepted but not yet honored"), as doestitle=on any channel with no title of its own (Detail,Tooltip,Text,Href,Key,Url,Description,X2,Y2, the error channels,Theta/Radius/Theta2/Radius2):<Channel>(title='T') is not honored: <Channel> draws no legend, and title= is not supported on this channel.StrokeWidth(title=...)and the opacity family'stitle=raised the same way at the time (the opacity family's own title refusal moved to this text); both are superseded above —StrokeWidthand the opacity family now draw a legend and honortitle=on it. A legend dict orLegend(...)onAngleand the other no-legend channels above, and onFacet/FacetRow/FacetCol/TooltipField, still raises where it warned.legend=None/legend=Falsestays silent everywhere;X/Y/Facet/TooltipFieldtitle=keeps working. stroke_dash=takes one closed vocabulary on every door, and a bare number now works (wave 6B close, #124/#128). On mark kwargs,annotate_*,SelectionMarkand thestroke_dashconditional, a dict, set, bytes, array, arbitrary object,np.bool_or timedelta now raisesValueErrorat the call, naming the door and the value; it constructed and then failed at render with serde text or a rawTypeError.mark_line(stroke_dash=5)renders a 5-pixel dash where it raised a serde error. Every accepted form reaches the wire as a list of floats, so a tuple or an int list serializes[4.0, 2.0].Chart.conditional()reads its channel from both branches, and a number on a color conditional refuses (wave 6B close, #128).Chart.conditional(sel.when(a).otherwise(b))names no channel and read it fromif_selectedalone, sosel.when(fm.value(20)).otherwise(fm.Size("v"))became an opacity conditional carrying a Size field. An encoding-channel branch on either side now decides, otherwise the first literal (a number is opacity); the result is checked against the conditional vocabulary, so a conditional onfm.Xorfm.Shaperefuses atChart.conditional()instead of serializing. A number on acolorconditional now raisesfm.value(0.2) for channel='color' needs a color string, got float: 0.2; it was silently re-typed as an opacity value.mark_hex(aggregate=)refuses an unknown aggregate at the call, and the needs-field refusal is one sentence on every door (wave 6B close, #137).mark_hex(aggregate="bogus")constructed and failed at.to_svg(); it now raises atmark_hex(...)likemark_raster. The needs-field check still runs at render, because.encode(color=...)can supply the field, and it now readsmark_hex: aggregate='mean' requires field=... (the column to aggregate); pass field=... or use aggregate='count', which need no field.(wasmark_hex aggregate='mean' requires field=...), composed by the same function asmark_raster's andRenderConfig's (whose text changespass raster_field= ortopass raster_field=... or).- Rust transform refusals and reprs move (wave 6B close, #137/#165).
Hex's refusal lists its vocabulary in the aggregate family's declared order,mean|sum|count|min|max|median|variance|var|stdev|std;Smooth(x_estimator=)andx_estimator_accepted_values()readmean|sum|min|max|median.Raster's needs-field refusal readsrequires field(wasrequires `field`), the same text asHex's.Kde(kernel=),QQ(distribution=)andSmooth(method=)refusals rendera|b|c(was'a' | 'b');data_stackreadsunknown offset 'x'; expected zero|normalize|center. A hand-builtHex/Raster/Binspec with an unknown aggregate refuses when the spec is read, not at apply. An alias is stored canonically, soHex(aggregate="std")reprsaggregate='stdev',Bin(agg="var")reprsagg=Some("variance"), and the wire writes the canonical spelling; SVG is unchanged. The render-side aux-range refusals nameShape(scale=...)/StrokeDash(scale=...). - A hand-built layered
ChartSpeccarrying a chart-levelmark_stylerefuses (wave 6B close, #119). Rust rendered it and ignored the style; it now raisesValueError: ChartSpec.mark_style is set on a layered chart (2 layers), where it has no effect: a layered chart is styled per layer. Move the style onto each layer's own mark_style.on both output kinds. Charts built through the Python API never produce this shape. ModelSource.from_base_and_compareis private (wave 6B close, #214). It was added earlier in this release cycle to own thecompare=merge and had not shipped; it is now an internal helper that also handlescompare=None.
Internal¶
- Four modules get job-named homes (wave 6A), three of them directory splits, all pure motion. The three splits needed no consumer
use-path edits; the arrowhead move updated five consumer sites inannotation/mod.rsandmarks/segment.rs.transform/smooth.rsbecomestransform/smooth/{mod,fits,binding,tests}.rs(#163).spec/encoding.rsbecomesspec/encoding/{mod,gate,tests}.rs, the scale-gate cluster in its own file (#158).render/break_axis/mod.rssheds four job-named homes,scale.rs,geometry.rs,indicators.rsandplacement.rs, whileBreakRemapand itsimplstay whole so none of its private fields widen (#229(1)). The arrowhead geometry moves out ofrender/draw.rsintorender/marks/arrowhead.rs, beside the marks that consume it (#229(5)). Visibility widens only topub(super)inside each module's own tree; nothing becamepuborpub(crate), and no field widened. - Untyped state becomes types (wave 6A). Paint provenance becomes
PaintSource/ClearablePaintin place of four parallel booleans and tuple returns (#110 part 1, byte-stable over a 64-shape corpus). The break axis becomes the shared two-variantAlignAxis, the enumExtentAlignmentalready used (#229(2)).AxisStyleOverrides' 34 flat fields partition into six clusters, withClaimed<T>replacing hand-rolled claimed-booleans and oneLabelBandCtxshared by the two x-label layout functions (#145). The six format predicates becomeFormatKind::resolve(#147), andcull_threshold's two meanings becomeLabelGapPolicy { gap_px, cull }(#146). - The unreachable per-channel
conditionwire route is deleted (wave 6A, #237). Every public spelling already routes throughChartSpec.conditionals. The RustEncodingSpec.conditionfield is kept, because the struct denies unknown fields and dropping it would turn a previously valid saved spec into a parse error. - The facet-extent pin is guarded by behavior, not a restated list (wave 6A, #196).
fix_transform_extents_for_facetkeeps its wildcard arm; a test now drives every extent-carrying transform kind through the real function and fails by name if a new kind misses the pin. #229(4), splitting break_axis's measure-and-mutate walker into a read-only visit plus a mutating one, is closed WONTFIX-by-design (user ruling). The walker's own documentation states why it is one function, atcrates/ferrum-core/src/render/break_axis/mod.rs:1307-1315: "The one walker both glyph passes share (measure, then move or hide), so a node kind cannot be measured by one rule and rewritten by another. … A measuring pass leaves the node untouched: the only arm that has to write (a rect, whose second coordinate is derived) writes only when the closure actually moved something, so measuring cannot drift a rect's width through a(start + len) - startround trip." That no-write guarantee is pinned bymeasuring_a_glyph_rect_does_not_perturb_its_sizeatcrates/ferrum-core/src/render/break_axis/tests.rs:1405-1421, whose assertion reads "a measuring pass must not write to the node" (line 1420).#229(3), theresolve_breakextraction, was closed with evidence and no code (42e8c7da).- Three duplicated rules get one owner each, byte-stable by proof (wave 6B, #214, #165(1)(2), #164). The
compare=merge that figure functions and visualizers each carried (the dict check, the reserved-baserefusal and the delegation) lives in one privateModelSourcehelper, and its error texts are unchanged (#214). The"{name}_{key}"rule that names a transform's secondary data sources, previously written at three Rust and six Python sites, is one function,ferrum._core.secondary_key, called from both languages; the two_registry.pycolumn helpers share one validation tail (#165(1)(2)). The 1279-line registry-consumer analyzer inside a test file moves totests/_registry_consumer_lint.pywith unit tests of its own and computed counts in place of drifted prose counts (#164). No library output changes. - pin the grouped interval warnings, contrast ink, NaN sort tier and partial-band thresholds by behavior
- comments, docstrings and test names state behavior, not the process that produced them
- pin that a faceted bivariate kde on a log axis grids in data units, and that a catplot encode= None entry binds nothing to refuse
- a new re-point site or statistic mark cannot drop bin=/aggregate= silently
- core never imports the figure layer
Documentation¶
ferrum-spec.md§3.12 now opensBreakAxiswith a consolidated current-contract block (parameters, construction/validation vocabulary, render model, per-mark-kind behavior, axis chrome, annotations, facets, same-axis merge, coord refusals, warnings, disclosed residuals). The sixteen dated notes stay below it verbatim as the historical record — several of them retract or supersede each other, so the contract was previously reconstructable only by replaying them in order. The break-axes guide's own Constructor reference caught up too: thegaptype cell names the temporal and numpy-numeric bounds it accepts, the Validation list covers every construction-time refusal, and the stale "breaks are applied in order, overlaps handled gracefully" sentence is replaced by the union-merge semantics it describes.- The Gallery page's three classification-diagnostic cards (
docs/site/gallery/img/{roc_chart,pr_chart,calibration_chart}.png) gained a committed generator,scripts/generate-gallery-diagnostic-pngs.py, and were regenerated through it. The 94 gallery images were produced ad hoc in May 2026 with no recorded recipe, so a change to what a diagnostic chart says left them stale with no way to refresh them — which had already bitten once: the calibration card was rendered in May and still showedBrier = 0.007, a number produced by the pre-F-L11-04 bin-level path that September replaced with the true per-sample score. The generator's data and split are a reconstruction (the originals were not recoverable from the committed PNGs), so the metric values on these three cards moved as well as the duplicate text disappearing:AUC = 0.974 → 0.885,AP = 0.983 → 0.871,Brier = 0.007 → 0.136. Canvas (1160×800), theme (paper_ink) and card titles are unchanged. - The guide's "Legend title" demonstration now shows the feature it demonstrates.
docs/site/guide/marks-encodings.mdhas illustratedfm.Color("species", type="N", title="Species")since before channeltitle=reached legends, so its rendered image (img/marks-encodings_02.png) showed a legend headedspecies— contradicting the paragraph above it. Regenerated under the #90 fix; it now readsSpecies, and the plot rect shifts slightly because the wider title changes the legend's measured width. The page's secondtitle=example is prose-only with no rendered image, and therecipes.mdexample usesfm.Legend(title=...), which always worked and whose image is unchanged in this respect. The guide's claim that "the legend title defaults to the field name; override it with thetitle=parameter on the encoding channel" was aspirational when written and is now literally true. ferrum-spec.mdgains dated notes for every wave-4 contract change (#90 and #130 in §3.2, #201-D and the zero-extent-rect rider underferrum.Layer, #193/#194/#200/#201-B underdisplot, #192 undercatplot, #121 underpr_chart), and the two rows that never learned about the rewritten binning parameter now state the accepted vocabulary explicitly: themark_histogram(...)statistical-mark row gainsbinsandposition_by, and thestat_bin(...)row's signature gainsbins=with its accepted set and its mutual exclusion withbin_count/bin_widthspelled out.- Corrected two stale claims in the 0.23.0 entry below, both of which were true when written and are superseded by this wave: the x/y-tick-ownership fix's closing sentence, which said closing the label-baseline gap "needs the scale-pixel-range fix tracked as a follow-up, not this one" and called the bottom label's offset "the lone outlier" — the scale-pixel-range fix and the tick-label rigid-translation fix both shipped this wave (#226, above), and no break-axis tick label sits at an offset from its dash different from its siblings' any longer.
ferrum-spec.mdgains dated notes for every wave-6A contract change: the break-axis token refusal (§3.12, 2026-09-20), thecull_threshold/cull_labelssplit and the independent-x facet fix (§3.13, 2026-09-20), the cleared-paint rule becoming universal and outranking the color channel (§3.2, the color-literal note, 2026-09-21), and the format-predicate unification (§3.7Axis, 2026-09-22).ferrum-spec.mdgains dated notes (2026-09-23) for every wave-6B contract change:#119underferrum.Layer,#123under the appearance channels andStrokeDash,#128under §3.10's conditionals and §3.3'sstroke_dashnormalizer,#149underAxis,#239beside the batch-HInsetnote, and the aggregate vocabulary and#195in §3.5. The wave-4#193note's claim that every non-FDBinrepr is byte-identical, true when written, carries a correction now that#195completes the repr.ferrum-spec.mdgains dated notes (2026-10-01, later rulings dated as made) for every wave-7 contract change:#108beside the opacity literal-alpha carve-out,#161undermark_swarm(drawn diameter, centre distance,Theme(point_size=)),#141underSecondaryY(default off, show and style chains), and#116under theSizechannel (taper, mapping, dashes, the width-conflict refusal and the public entry it names, the constant twin, the legend swatch and when a size legend is drawn, composite-local color under promotion, and the 2026-10-01/02/03 rulings). The wave-6C note's "sizepushes no warning" sentence is amended: still true of warnings, but a sized line can now refuse. Themark_linedocstring's "Default is 2" forstroke_widthis corrected to the theme'sline_stroke_width(1.5 by default), andSize,mark_line,mark_swarmandrelplot(size=)document the dot-diameter width.docs/site/guide/concepts/secondary-axes.mddocuments the secondary-gridline opt-in.ferrum-spec.mdgains dated notes (2026-10-06) for the wave-7 close's last contract changes: the Rust style table, its inert-field warnings, the internal and method-only fields and the wire refusals in §3.3;blendbesidemark_raster;fm.Layer(mark=)and the wireLayerunderferrum.Layer; the swarm packing diameter undermark_swarm; conditional scope, selection owner panels and the redefinition refusal in §3.10; and thenumeric_columnswording and the figure voice ofjointplotand of a malformedmark=among theSizechannel's later rulings. The guide's mark style kwargs table states howblenddraws in each output.- regenerate the displot ecdf gallery image as a per-observation step line
- regenerate the displot ecdf gallery image with its rise from 0
- start a session's run check with ledger run-state
0.23.0 — 2026-09-11¶
Three api-contract-audit remediation batches land at once: the figure-helpers batch (#202 — catplot's estimating kinds aggregate for real over seeded-bootstrap CIs, native_scale= works both ways, the lmplot/regplot family stops corrupting its own scatter, displot's KDE overlay scales and colors correctly, clustermap dendrograms stop blanking), the diagnostics-correctness batch (#225 — every metric number a diagnostic chart displays now comes from one source of truth: stable-sort AUC/AP, per-sample Brier everywhere, real class names, binary targets outside {0, 1} finally computed correctly, string-labeled confusion matrices un-zeroed), and the annotations-interactivity batch (#246 — segment arrows and annotate_arrow heads become real, the full BreakAxis clipping/placement/suppression contract ships, Inset validates and honors px(), Parameter.ref() and channel condition= reach real pipelines under one typed vocabulary, and every composition view learns to_dict()/to_json()/pipe() with lossless figure chrome). Silent parameter drops die loudly throughout; the per-batch sections below carry the full contracts.
Batch F closes eight open api-contract-audit findings (F-L09-01/02/03/04/08/10, F-L10-04/09) plus the F-L10-01 layer-render-robustness rider surfaced along the way. Silent parameter drops in the figure-level helpers die loudly throughout.
Added¶
- Breaking:
catplot(kind="point"/"bar")now renders one mean estimate per (category ×hue) group over a seeded-bootstrap CI whisker, from a singleSummarytransform — previously each drew one mark per raw row (200 overplotted circles for a 200-row frame).ci=/n_boot=are honored (cia percent in the open interval(0, 100),n_boot >= 1), with typed refusals for out-of-range values and forbool(ci=Trueused to mean a 1% interval);seed=seeds the bootstrap as well asJitter. Both kinds are layered charts now, somark=takes per-layer keys ("whisker"plus"point"/"bar") instead of a flat mark-kwargs dict. An explicit value-channelscale=carrying adomainis honored; a domain-less type-only scale (e.g.{"type": "log"}) now raises naming the working route instead of silently clipping the CI whiskers. The other sixkind=values are byte-identical. - A layered chart's auto-inferred value-axis domain now extends to zero when a bar layer binds that channel (the same zero-anchor a single-chart
mark_baralready gets), suppressed when the bar binds an explicit span channel (y2/x2). This is what keepscatplot(kind="bar")'s bars on a zero baseline; a per-layermark_bar(zero=False)(or catplot's ownmark={"bar": {"zero": False}}) opts a layer out, and the opt-out now survives composition into a layer, includingresolve={"y": "independent"},SecondaryY, and every.interactive()LayerChart. One phase-10 golden (class_prediction_error_multiclass.svg) moved its baseline accordingly. catplot(native_scale=)is fully implemented both ways. Breaking:native_scale=False(the default) now forces nominal typing for a numeric category column — previously the category channel was never explicitly typed, so a numeric column (e.g. an integer year) silently inferred a quantitative axis, contradicting the documented default; it now renders as equal-spaced categorical bands, matching a string column and matching seaborn.native_scale=Truetypes the channel quantitative and places categories at their true numeric positions, raising a typed error naming the column and dtype for a non-numeric column; the former hard refusal ("the renderer does not support quantitative categorical axes") is deleted — it was factually wrong. An explicittype_=on an already-built channel takes precedence over both.kind="strip"'sJitterwidth on a native scale is now data-derived (0.4× the median unique-value spacing) instead of the ordinal band-fraction, and the quantitative domain pads so jitter/dodge offsets never silently drop marks.catplot'shue_order=is now honored forkind="box"andkind="violin"— previously silently ignored (byte-identical output regardless of the argument). A bareColor(sort=...)onmark_boxplot/mark_violin/mark_errorbar/mark_errorbandis honored the same way.kind="boxen"/"swarm"are unaffected (theirhue_order=already worked through chart-level color).- Options stated on a channel you build yourself now reach every
catplotkind.x=fm.X("cat", sort=[...])andhue=fm.Color("g", sort=[...])were honored by the six per-row kinds but discarded bykind="point"/"bar", whose layers rebuilt both channels from bare field names and re-threaded onlytype_,order=and the native-scale domain — so the encoding spelling of an order silently did nothing while theorder=/hue_order=kwarg spelling worked. Both spellings now resolve at one site and land in one place, for every option (sort=,title=,axis=,scale=, …), on all eight kinds. Where both are given, the kwarg still wins, as it always has. The third door behaves uniformly too:encode={"x": …}is a raw override that replaces the builder's normalized category channel — it always did that on the six per-row kinds, and now does it onkind="point"/"bar"as well instead of being silently inert there. Breaking: a per-observation appearance channel on the two estimating kinds now raises instead of drawing a legend for a mapping the marks cannot carry —catplot(kind="point", size="sz")drew uniform-radius estimator marks under a six-swatch size legend, andopacity=was a byte-identical no-op.size,shape,opacity,fill_opacity,stroke_opacity,stroke_width,stroke_dash,angle,color,fillandstrokeare refused forkind="point"/"bar"(through both the keyword and theencode=dict), naminghue=— which joins theSummarygroupby and therefore does work — and the per-row kinds as the routes. The per-row kinds are unaffected. - Fixed:
lmplot/regplotno longer replace the scatter's observations with the fit line's evaluation grid. Withci=Noneandshow_metrics=Falsethe fit collapsed to a single line mark bound to a chain-advancing (unnamed)Smooth, which then applied to the scatter layer too: every "observation" landed exactly on a fit vertex (measured: 200 of 200, zero spread about the curve) forlm,loess,quadratic,gam,logandsqrt, in both functions — or raisedunknown columnoutright when the data's columns were not themselves namedx/y. The fit now binds to a named transform throughdata_source=, the same shape the CI path and thelogistic/glm/robustmethods already used. On that one combination the fit layer is named"line"rather than"fit"(matching every otherlmplotshape), so amark={"fit": …}override for it becomesmark={"line": …}. Separately,x_jitter=on an integer predictor now renders instead of raisingJitter: … expected Int64 but found Float64; that failed on three of the fourci/show_metricscombinations and was masked on the fourth by the scatter corruption above. displot(kind="kde", cumulative=True)now produces a real CDF — previously the kwarg was silently dropped for the primary KDE mark and rendered byte-identically tocumulative=False. Thekde=Trueoverlay onkind="hist"inherits the samecumulativevalue. That overlay is also count-scaled and per-hue: underkind="hist", stat="count", multiple != "fill", the curve is rescaled to the histogram's own bin width and group size so it's visible against the bars instead of a flat ~2%-height sliver, and it now threadsgroupby=huewith a matching color channel instead of drawing one pooled, uncolored curve over per-hue bars.stat=is validated against{"count", "density"}for everykind=; an unsupported value (e.g."probability") now raises instead of silently degrading to a count-mode render.stat="density"overlays andkind="ecdf"are byte-identical. Fixed:rug=Truecombined withhue=andmultiple="stack"/"fill"no longer crashes ("Stack: value (y) encoding required") — the rug and kde overlay layers now carry an explicitIdentity()position so neither can inherit a stack/normalize adjustment; rug ticks are never dodged or stacked.clustermap's dendrogram panels no longer silently blank at practical ratios — the dendrogram leaves were reserving axis chrome (a title gutter, and on the row side a label band) for axes thataxis(show=False)never draws.dendrogram_ratio=0.1now renders both dendrograms, and the default ratio (0.2) no longer blanks the column dendrogram on a short heatmap (e.g.figsize=(480, 200)). Sub-floor ratios still raisePaddingExceedsViewport. All clustermap output changes geometry as a result (dead chrome removed from the dendrogram panels); theclustermap_basicandclustermap_row_col_dendrogramsgoldens were regenerated and PNG-inspected. Two adjacent layered-chart wire bugs found alongside it are fixed generally:title=Noneon a layered channel now reaches the wire and suppresses the axis title (a truthiness check was dropping it, same as it already droppedtitle="");format=on a layered channel no longer raises an unknown-field error; a layer'scondition=now reaches the wire instead of silently vanishing.- A layered chart with a layer (index ≥ 1) whose positional encoding (
x/y/x2/y2) names a column missing from that layer's own resolved batch now raises a typed error naming the layer index, channel, and column — previously only layer 0 was validated, and every later layer's missing column silently rendered nothing. An inherited color channel absent from a layer's batch is unaffected (still renders); zero-row layers still skip. The gate surfaced two formerly-invisible bugs, both fixed: the discrimination-threshold desugar no longer draws its optimum-label/threshold-line layers when the f1-gated sentinel columns were never injected, and a secondary-y smooth chart now encodes the transform's real output column. residplot(color=)works, both documented halves. A value naming a column ofdatagroups the residuals (refit per group via the transform'sgroupby, colored by that column, with alowess=Trueoverlay drawing one curve per group) — previously everycolor=value raisedValueError: unknown column. A value that is not a column is parsed as a literal color and painted onto the points via mark-levelfill=, composing withlabel=for a labeled legend swatch in that color; a value that is neither raises, naming both interpretations.robust=True, label=...now shows the label (previously a silent no-op).show_metrics=True's corner annotation is suppressed only whencolor=actually groups — alabel=-only grouping keeps its corner. A user column literally named_labelpluslabel=now refuses with a typed collision error instead of silently being overwritten.regplotgains four real named parameters —logx,show_metrics,x_bins,x_estimator— withlmplot's exact defaults; previously reachable only through the kwargs bag, invisible to introspection.regplot(col=...)/regplot(row=...)now raiseTypeErrornaminglmplotas the faceting route, instead of silently faceting.ferrum.Robustgainsgroupby(mirroringSmooth), enabling per-group Huber-IRLS refits with group-key columns re-emitted at their original dtypes. ASmooth/Robustgroupbycolumn that collides with the transform's own output column name now refuses with a typed error naming the real output columns — previously a duplicate-named Arrow field was silently mis-resolved, corrupting output instead of refusing. Separately, agroupbylist that repeats a column name (groupby=["g", "g"]) now refuses across the whole partitioning family —Bin,Kde,Kde2D,Smooth,Robust,Outliers,TopK,Impute,RegressionData,LoessData— naming the repeated column. A repeat is a malformed request rather than a property of any one transform, so the refusal moved into the shared partitioner they all call. For those ten, a repeat previously emitted two identically-named output fields, and every downstream reader of "the groupby column" silently resolved to the first of them. (Aggregate,Summary,Violin,BoxStats, andErrorExtentalready refused the same repeat at construction time and are unchanged.)
Breaking changes¶
catplot(kind="point"/"bar")renders aggregated bootstrap estimates by default instead of one mark per raw row (documented behavior — the guide already said this — now actually true);mark=on those two kinds takes per-layer keys.catplot(native_scale=False), the default, forces nominal typing for numeric category columns (previously silently inferred quantitative).- All
clustermapoutput changes geometry (dead dendrogram chrome removed);ratio=0.1and short heatmaps now render their dendrograms. - New typed refusals of previously-accepted calls:
regplot(col=/row=)(silently faceted); a layered chart's layer ≥ 1 naming a missing positional column (silently rendered nothing);catplot(kind="point"/"bar")with a domain-less type-only value scale (would silently clip CI whiskers);catplot(kind="point"/"bar")with a per-observation appearance channel —size,shape,opacity,fill_opacity,stroke_opacity,stroke_width,stroke_dash,angle,color,fill,stroke(drew a legend over marks that could not carry the mapping, or did nothing at all);displot(stat=<unsupported>)(silently degraded to counts);boolforci=/n_boot=;Smooth/Robustgroupbyname collisions with an output column, and a repeatedgroupbycolumn name on any partitioning transform (both silently corrupted output);residplotwith a user column named_labelpluslabel=(silently overwritten). lmplot/regplotwithci=None, show_metrics=Falsename their fit layer"line"instead of"fit"(every other shape already did), so amark={"fit": …}override for that one combination becomesmark={"line": …}. The rename comes with the fix that stops that combination from overwriting the scatter's observations with the fit grid.- Layered bar charts' auto-inferred value axis now anchors at zero (one phase-10 golden moved); opt out per layer with
zero=False.
Batch G closes twelve open api-contract-audit findings in the model-diagnostics surface (F-L11-01/04/05/06/08/09, F-L12-01/02/03/08/09, F-L10-07) plus the annotate_auc/annotate_ap crash rider surfaced along the way. Every metric number a diagnostic chart displays now comes from one source of truth.
Added¶
classification_report_chartgains ay_true=/y_pred=precomputed path (hard class labels), joining the ten other prediction-evaluation figure functions (roc_chart,pr_chart,calibration_chart,gain_chart,lift_chart,discrimination_threshold_chart,confusion_matrix_chart,class_prediction_error_chart,residuals_chart,prediction_error_chart) that already accept it — eleven in total — computed from confusion counts with no sklearn import. The chart now carries a title,"Classification Report"(previously untitled), on both paths. The precomputed path never emits asupportrow (a deliberate non-parity with sklearn's ownclassification_report, which does report support counts). An X-less or y-less model-path call now raises a typedValueErrornaming the diagnostic and the fix instead of leaking a bare sklearn shape error or a foreignInvalidParameterError.ModelSource(model, X=None, y=None, ...)—Xis now optional (back-compatible). Diagnostics computable from model attributes alone (pca_variance()whenexplained_variance_ratio_is present,intercluster_distance()) work with noX; every other derived-data method raises a typedValueErrornaming the diagnostic and the fix, replacing a leakedTypeError(direct construction) or a leakedChart(data=None) requires per-layer data...error (routed through a figure function's ownX=Nonedefault). A new public, read-onlyModelSource.class_names -> list[str] | Noneproperty is added (class_names=→model.classes_→None; no positionalclass_{i}invention), proxied onComparedModelSource.intercluster_distance_chart(method="tsne")now renders for every documentedk >= 4— the perplexity clamp wasmin(5, k-1), one short of the kNN-size requirement, sokin{4, 5, 6}raised a typed refusal; it is nowmin(5, k-2).rank1d_chart(df, y=y, algorithm="covariance")on a raw DataFrame/2-D array now renders — it previously always routed through aModelSource-shaped path that requiredX, regardless of whether the input was raw tabular data or a fitted estimator.partial_dependence/importances(method="permutation")no longer leak sklearnUserWarnings about feature names when the model was fit on a named frame — a pandas DataFrame is rebuilt with the model's ownfeature_names_in_before the sklearn call, with numeric output identical to the numpy path. Disclosed residual: a bare-array polarsDataFramebuilt by the caller with noschema=(auto-generatedcolumn_0, column_1, ...labels) is treated as a genuinely named frame — polars has no structural marker distinguishing it from a deliberately user-named one — so it now raises sklearn's own feature-name-mismatch error where it previously computed a silently positionally-correct result with a warning. The two most common nameless-matrix shapes, a barenumpy.ndarrayandpd.DataFrame(array), are unaffected and compute correctly with zero warnings.- Every
FerrumVisualizersubclass gains, as explicit keyword-only constructor parameters, every kwarg its underlying chart builder documents — including the override quartetmark=/encode=/properties=/layers=on every single visualizer in the family (previously reachable on none of them).ResidualsVisualizer(panels="auto")now renders the canonical 4-panel grid, matchingresiduals_chart(panels="auto"), via a shared expansion helper both callers use.
Fixed¶
- Breaking: every AUC/AP a user sees — the
roc_chart/pr_charttitle, the legend text, and theAUCLabel/APLabeloverlay — now reads the same number, sourced from the frame's Rust-kernel-computedauc/apcolumn instead of three independent Python re-derivations. The composable+ AUCLabel()/+ APLabel()path (which has no such column on arbitrary user data) now sorts with a stable sort, since ROC/PR curves routinely repeat one x/recall value across many rows and an unstable sort's within-tie permutation previously changed the integral. PR macro interpolation, gain/lift score ordering, andModelSource.silhouette()'s within-cluster descending sort are all stable too — the last one changesmark_silhouette's rendered bar order for tied silhouette values (user-visible, sincesilhouette()emitsy_positionin row order). AUC/AP values move wherever the old unstable re-derivation was wrong (verified against the kernel column; seven phase-10 goldens regenerated and PNG-inspected); forper_class=Falseaveraged titles, the value is now the weighted mean of per-class values (sklearn parity), not a trapezoid over the interpolated averaged curve. mark_roc(annotate_auc=True)/mark_pr(annotate_ap=True)render their metric label instead of raisinglayer N: unknown column '_auc_label_x'(a crash introduced by the batch-F layer-validation gate surfacing a previously-silent no-op).- Breaking: the
BrierLabeloverlay oncalibration_chartnow shows the exact same per-sample Brier score as the title, invariant ton_bins=/strategy=— it previously integrated the chart's own binned reliability-diagram data (not the Brier score at all; observed swinging 0.078 → 0.028 onstrategy=alone while the true value held at 0.096). The compared-path (compare=) overlay now shows each model's own true per-sample Brier instead of one bin-level number shared by every model (supersedes the prior spec's bin-level sanction for the compared path — see the datedferrum-spec.mdnote). The precomputed path (calibration_chart(y_true=, y_pred=)) now carries the Brier in its title too, where it previously stayed blank. - Breaking:
gain_chart/lift_chartshow the model's real class names for every class, not a synthetic"Class N"rename for the first two — binary charts now label classes"0"/"1"(the stringified real value) instead of"Class 0"/"Class 1", and a 3rd-and-later class (previously unlabeled relative to its siblings) now renders with its own real name too. String-named classes were already rendered as-is and are unaffected. The synthetic baseline row still renames to"Baseline". - Unknown constructor kwargs on any
FerrumVisualizersubclass now raiseTypeErrornaming the kwarg — the base class's silent**_extraswallow is removed. ROCVisualizer/PRVisualizer/DiscriminationThresholdVisualizer's derived metrics (auc_mean,ap_mean,best_threshold/best_f1,__repr__) undercompare=now always describe the base model, consistent with.score()— previously they could report a value pooled across (or drawn from) a compared rival model while.score()reported the base model's own number.- Breaking: a binary target's labels no longer change its metrics. Every binary classification diagnostic now binarizes
yagainst the positive class before the Rust kernels see it — the kernels count positives by summingy_true, so they need a 0/1 indicator, and the binary arms ofroc_curve/pr_curveplus all ofcalibration_curveused to hand them the raw target. Onlyy ∈ {0, 1}was ever correct.y ∈ {-1, 1}(the SVM convention) rendered"ROC Curve — AUC -1.747"with atpraxis reaching -4.375 against a true AUC of 0.9994;y ∈ {1, 2}renderedAUC 0.302against 0.9989 and a Brier score of 1.035 (a Brier score is bounded in[0, 1]); string class labels raisedcould not convert string to floatoutright, fromroc_chart,pr_chart,calibration_chartand the precomputedy_true=/y_pred=path alike. All of these now produce exactly the numbers the{0, 1}labelling produces for the same probabilities.{0, 1}targets are byte-identical (no golden moved). The precomputed path additionally stops comparingy_trueagainst the string"1": its two class values are read fromy_trueiny_true's own dtype, and a degenerate single-classy_truenow labels its curve with the class actually present rather than a fabricated"1". calibration_chart(...) + fm.BrierLabel()— the example inBrierLabel's own docstring — now renders the true per-sample Brier score, agreeing with the title, on bothstrategy="uniform"andstrategy="quantile". It previously rendered the bin-level integral (0.030 uniform / 0.009 quantile against a true 0.028 on a reference fixture, a 3.3× swing from a binning kwarg the Brier score is invariant to) and overwrote the correct labelannotate_brier=Truehad already placed, so following the docstring produced a chart strictly less correct than the default.ModelSource.calibration_curve()gains a broadcastbriercolumn for this (schema change, additive), computed where the per-sample predictions still exist; title, figure overlay and composable label now all read that one column. Composing+ AUCLabel()/+ APLabel()onto aroc_chart/pr_chartreads the frame'sauc/apcolumn by the same rule — those values already agreed, so nothing rendered moves.- Breaking: a metric column the kernel computed as NaN now displays as
naninstead of silently falling back to integrating the curve. "The frame carries no such metric" and "this metric is undefined for this curve" are different facts; collapsing them turned the one honest signal a degenerate single-class curve emits into a plausible-looking fabricated number. Frames that carry no metric column at all (arbitrary user data under+ AUCLabel()) still integrate, unchanged. CalibrationVisualizer'scalibration_erroris now per-model when several models are overlaid — onecalibration_error[<name>]entry each, where a single pooled scalar over every model's rows previously described no model in particular (while an inline comment claimed per-model values). Single-model visualizers are unchanged._parallel_coords_chart_from_dataframe's deadalpha=0.3default is now0.5, matching both of its callers and both public surfaces; the visualizer↔chart parity harness now diffs defaults as well as parameter names, with the same rationale-carrying, staleness-checked skip-map the name diff uses (two documented entries:ResidualsVisualizer/CooksDistanceVisualizerpanels=).- Fixed (found by the close's own design review): a binary classifier that exposes no
classes_— any hand-rolled estimator, any wrapper that forwardspredict_probawithout re-exporting sklearn's attributes — produced collapsed metrics on every binary diagnostic. The positive class was resolved by parsing the display label back out of theproba_<label>column name, but those names come fromclass_names, which is either a user-supplied alias or a syntheticclass_{i}; neither is a valueycontains, so the (now mandatory) binarization zeroed the indicator. Measured against a true AUC of 0.9417:roc_charttitledAUC nan,pr_curve()["ap"]was0.0,calibration_curve()["fraction_positive"]was flat at0.0, and the Brier read0.380—mean(p²), in range and plausible and wrong. The positive class is now read fromy's own distinct values when the model offers noclasses_, the same rule the precomputed path already used; models that do exposeclasses_(including with aclass_names=display alias) are unaffected. - Breaking: a binary diagnostic whose target matches no row of the positive class now raises a typed
ValueErrornaming both the class value searched for and the valuesyactually holds, instead of drawing a curve against an entirely-negative phantom target. An all-null target refuses the same way (nulls compare unequal to everything). This coversroc_curve,pr_curve,calibration_curveanddiscrimination_threshold; multiclass one-vs-rest is deliberately unaffected, since "no row is class k" is a legitimate answer there andlift_curvedocuments skipping zero-base-rate classes. An empty target is not an error, and an all-positive target still reports an honest NaN from the kernels. The refusal judges the request, not an internal slice of it:discrimination_threshold(cv=...)validates the positive class once against the whole target and then sweeps folds from that validated indicator, so a held-out fold containing no positives still contributes its honest all-zero sweep (unchanged numbers) instead of aborting the call. - Fixed (found by the close's own dtype matrix):
confusion_matrix()— and thereforeconfusion_matrix_chartandConfusionMatrixVisualizer— rendered an all-zero matrix wheneverywasUtf8,Categorical, orEnumwhile the model'sclasses_was numeric (the ordinary shape for a string-labelled target fed to any sklearn classifier:predictreturnsclasses_'s dtype, noty's). The encode values were correctly coerced intoy's domain, but the predictions were left inclasses_'s, so every(actual, predicted)pair encoded to the kernel's out-of-vocabulary code and was dropped. Predictions are now translated through the same positionalclasses_ -> y-domain correspondence the encoding uses. Numericyis byte-identical (the translation is the identity there). - Documentation corrections: the visualizer-family module docstring no longer advertises a
.predict/get_params/set_paramssurface andGridSearchCVcomposability that does not exist (the real surface isfit/score/has_score/show, and withoutget_paramssklearn.base.clonecannot work);ModelSource's constructor docstring no longer promises aclass_namesfallback to "the unique values ofy", which the property has never done and documents at length why.
Breaking changes¶
- AUC/AP values in titles/legends/overlays change wherever ties made the old unstable sort wrong; averaged-curve titles change number semantics to the weighted mean of per-class values.
- Compared-path
BrierLabels switch bin-level → per-sample; precomputed calibration gains a Brier in the title. - Binary targets outside
{0, 1}—{-1, 1},{1, 2}, string class labels — now produce correct ROC/PR/calibration metrics where they previously produced fabricated ones or raised;{0, 1}output is byte-identical. chart + fm.BrierLabel()shows the per-sample Brier instead of the bin-level integral, and no longer replaces a correct existing label;ModelSource.calibration_curve()gains abriercolumn.- A NaN metric column renders as
naninstead of falling back to an integrated (fabricated) value. confusion_matrix()on a string/categoricalyreturns real counts instead of an all-zero matrix.- Binary diagnostics on a model without
classes_return correct metrics instead of collapsed ones (nanAUC,0.0AP, amean(p²)Brier). - A binary target matching no positive row, or an all-null target, now raises a typed
ValueErrornaming the class value and y's values instead of silently producing a plausible number. CalibrationVisualizer._metrics/__repr__key multi-model calibration error per model (calibration_error[<name>]) instead of reporting one pooledcalibration_error.- Gain/lift binary labels:
"Class 0"/"Class 1"→ the model's real class names ("0"/"1"for integer classes). - Unknown
FerrumVisualizerconstructor kwargs go from silently swallowed toTypeError. classification_report_chartgains a title and a new precomputed path;ModelSource'sXbecomes optional with typed refusals replacing leaked internal errors.- A bare-array polars
DataFrame(pl.DataFrame(array), noschema=) fed to aModelSourcewhose model was fit under different real feature names now raises sklearn's feature-name-mismatch error instead of silently computing a positionally-correct result with a warning.
Batch H closes seventeen open api-contract-audit findings across annotations, structural charts, the reactive-parameter surface, and the composite/output API (F-L08-01/02/03/06/07/08, F-L13-01/02/03, F-L14-01/02/03/04, F-L15-01, F-L06-01/02/04). Dormant kwargs and dead spec-fiction surfaces either become real or get their docs corrected to match reality — nothing stays silently half-true.
Added¶
mark_segment(arrow=True, arrow_size=8.0)now draws a filled triangle arrowhead at(x2, y2)— a documented kwarg pair that previously raisedTypeError.mark_segment()withoutarrow=is byte-identical.Inset(bounds=...)acceptsfm.px(...)entries without raising — pixel-tagged bounds resolve against the parent plot rect at layout time, per the original designpx()had drifted away from. Mixedpx()/norm()/bare-float entries in one bounds tuple resolve independently.InteractiveChart.to_html()returns the byte-identical string twin of.interactive().save("x.html"), matching the guide's claim — the method didn't exist before.- A channel's own
condition=<ConditionalSpec>kwarg (Color(field=..., condition=selection.when(...).otherwise(...))) now reaches the real conditional pipeline instead of serializing into an inert per-channel wire blob no renderer consumed. One vocabulary governs both spellings of a conditional (encode(<channel>=cond)and<Channel>(field, condition=cond)): it may targetcolor,size,opacity,stroke_width,stroke_opacity,stroke_dash,fill_opacityorangle, andfillcarries it ontocolor— the same target it aliases to for its base encoding, so both spellings produce the identical wire conditional.strokeandshapeare not conditional targets, each for a measured renderer reason: the only conditional colour value repaints a mark's fill, so a stroke conditional would have recoloured the interior instead of the outline; and there is no shape value at all, so a shape conditional serialized cleanly and then did nothing. Both raise the same typed error as any other non-conditional channel untilEncodingValue::StrokeColor/EncodingValue::Shapeexist (filed follow-ups).StrokeWidth,StrokeOpacity,FillOpacityandAnglenow declareconditionhonored, so their workingcondition=no longer draws an "accepted but not yet honored" warning. A wire channel carries at most one conditional: two declarations that resolve to the same channel (e.g.color=andfill=) now raise, naming both spellings, instead of emitting two conditionals with no defined winner. sel.when(...)/.otherwise(...)branches accept a bare string as field shorthand (parsed the same grammarencode()uses) — a bare string means a field everywhere else in ferrum, and this closes the one place it didn't; a literal still requiresfm.value(...).- Every composition view (
HConcatChart,VConcatChart,ConcatChart,LayerChart,JointChart,RepeatChart,ClusterMapChart) gainsto_dict(),to_json(*, indent=None), andpipe(fn, *args, **kwargs);Chartgainspipe().to_dict()is a recursive declaration dict — a nested composite child now embeds recursively instead ofNone. The six_CompositeBaseviews carry the figure-leveltitle/subtitle/captionset via.properties(...)under those key names, omitted when unset (so a chrome-free composition's dict is unchanged, andJointChart/RepeatChart/ClusterMapChart'sto_dict()still equals.specwhen untitled);LayerChartcarriestitleonly, since a single-plot overlay has one title slot and fanssubtitle/captionto its layers. Atitleis serialized through the same helper a leaf chart's title uses, so it carries the same{"text": ...}shape at every level of the dict andfm.Title(...)no longer produces a dictto_json()cannot serialize. Facet(field, columns=N)(thefacet=wrap channel) is honored — previously a warn-and-noop. It writes the samencolssinkChart.facet(ncols=N)already writes, with last-writer-wins precedence between the two spellings.FacetRow/FacetCol'scolumns=is unaffected (still warns and drops — a wrap count has no meaning in grid mode).- Breaking (close cycle 3, H3-1):
Chart.layer(Layer(encoding={...}))'s channel-carriedcondition=now reaches the real conditional pipeline too — a fourth entry point alongsideencode()'s two spellings andChart.conditional(), gated by the same vocabulary (stroke/shape/x/yraise the same typed error). Previously it silently serialized into the dead per-layerEncodingSpec.conditionblob and did nothing.
Fixed¶
- Breaking:
annotate_arrow(...)now renders a filled arrowhead by default on all three of its render paths — standalone.to_svg(), unlabelled+overlay, and labelled overlay — where it previously rendered headless everywhere;ann.arrow()(which already drew a head) is unchanged. Bothmark_segment(arrow=True)andannotate_arrowshare one triangle-geometry helper, so the two are byte-consistent for the same endpoints and size. - Breaking:
annotate_vline(..., label=...)'s label now renders near the top of the line, matching its docstring — it previously anchored to the plot's bottom edge underNormCoord's real y convention. NormCoord's docstring corrected:0.0is the left/top edge and1.0is the right/bottom edge (SVG's downward y), not left/bottom → right/top as it previously (and always incorrectly) claimed. No render-side behavior changed — only the docs were wrong.- Breaking:
BreakAxismarks, glyphs, and ticks now follow the guide's documented clipping/placement contract instead of silently distorting under a gap. Extent marks (bar/area/rect/ribbon, plus filled shapes like violin) clip per visible segment instead of stretching across the gap or vanishing; glyph marks (point/tick/text/label/image) translate whole to their compressed position and hide whole when their anchor falls in a gap, never split or resized; vertex-placed marks (line/rule/segment/polygon-outline/arc) place each vertex independently. In-gap ticks and gridlines hide correctly, the axis title no longer teleports off-canvas when a gap straddles the axis midpoint (three existing break goldens re-blessed and PNG-inspected — one element each, the returned title), aSecondaryYlayer is exempt from a break declared on the primary axis, and gap normalization fixes an indicator-pixel accounting bug at gaps touching a domain edge. - Breaking: a
BreakAxisannotation whose data-space coordinate falls inside a gap is now suppressed with a named warning instead of silently rendering at the unbroken (wrong) position; an extent-shaped annotation (rect, span, line, arrow, bracket) is suppressed when its interval crosses a gap too, not only when an endpoint lands in one — previously a rect large enough to contain the gap came back and painted straight across the break while every smaller, overlapping rect was dropped. A surviving data-space annotation is remapped through every same-axis break the same way a mark would be. Separately, and on every chart rather than only broken ones: an out-of-domain annotation value now clamps to the correct plot edge (a prior sign error put it on the mirrored side, e.g.annotate_hline(y=-50)on a[0, 100]axis rendered above the plot; the break's fold only made the long-standing error conspicuous).Inset(connect_to=...)resolves its out-of-domain anchor through that same corrected rule. BreakAxisno longer disappears without a trace. A break on a reversed scale (LinearScale(reverse=True), whose domain is descending) now actually breaks the axis instead of rendering an unbroken chart; a break that resolves to zero effective gaps (every gap outside the domain, or an ordinal axis, which has no numeric domain for a gap to clip against) warns instead of silently doing nothing, and draws no break indicator over a scale it never moved; and a break on a non-linear scale (log,pow/sqrt,symlog) warns that its gap placement is computed with a linear pixel-to-data map and so removes a different data range than requested (unfixed, and previously silent).mark_segment(arrow=True)under aBreakAxiskeeps its arrowhead's size and its alignment with the shaft: the head is now rebuilt from the shaft's placed endpoints — the same thingannotate_arrowhas always done on the annotation path — instead of having its three vertices placed independently, which sheared a 20px head into a ~90px one across a gap. The shaft still places per vertex.- An x-axis's tick marks survive a y-axis
BreakAxis(and vice versa). A break decided which chrome was "its own" from a pixel coordinate, and a downward x tick starts ON the plot floor — inside the y axis's own pixel span — so on a chart with no scale padding all of its x ticks were reverse-mapped and clamped to a single pixel, i.e. rendered as zero-length lines. Ownership now comes from the axis's own dimension. Affected goldens (three break-indicator charts and the clipped-bar chart) were regenerated: one element each, the bottom y tick label's baseline, which moved 4.6px closer to its siblings' convention — every other y label on a broken axis sits +4.63px below its own dash, and the bottom label now sits at +0.00px rather than its prior −4.33px offset. It remains the lone outlier; the break's segments are laid over the plot rect while the label's baseline offset reverse-maps as if it were a data position, and closing that gap needs the scale-pixel-range fix tracked as a follow-up, not this one. - Breaking: a
BreakAxiswhose gaps all miss the (padded) domain — the "zero effective gaps" case just above — now renders exactly the unbroken chart, not merely a stable approximation of one. The zero-effective-gaps warning was accurate about the diagnosis from the moment it shipped, but the render still went through a single-segment "identity" map laid over the plot rect while the real remap reverse-maps from the scale's own PADDED pixel range — so it silently collapsed the scale's padding, moving every mark, tick, and gridline by up to the padding width (as much as 8px on a typical chart) on a break the warning itself says did nothing. Dropping that stale map closes the gap between the diagnosis and the render; no goldens move (none of the shipped break goldens have out-of-domain gaps on a continuous axis). Inset(bounds=...)now refuses at construction time for out-of-[0, 1]normalized entries, negative pixel entries, and an empty box (compared only within like kinds) — previously these constructed silently and rendered off-canvas or degenerate. The docstring and guide drop the incorrect "bare float = data-space" claim; bare floats have always meant normalized[0, 1]fractions.fm.param(...).ref()is now consumed at all three documented sites — scaledomain=,transform_filter(...), and a conditional'swhen()/otherwise()branch — instead of silently going nowhere, or, attransform_filter, silently mangling into a garbage predicate. A conditional ref resolves to the named parameter's registered static value on a real chart, or raisesValueErrornaming the parameter when it isn't a registered value-bearingfm.param().- Auto-raster's color exclusion now splits by type, and the type is inferred from the column dtype when the channel carries no annotation —
color="z"on a numeric column substitutes exactly likecolor="z:Q",color="c"on a string column stays excluded, and an explicit annotation always wins (color="z:N"on a numeric column keeps the exclusion). The exclusion warning describes only the type the gate actually determined, so it never calls a numeric column categorical. A quantitative color encoding no longer blocks auto-raster — it substitutesmark_raster(aggregate="mean", field=<color field>, cmap=<the channel's own scheme, or raster_scheme>)instead of silently staying vector pastraster_threshold. A categorical/ordinal/temporal color encoding keeps the exclusion (permanently — no pixel aggregate preserves a category's identity), now with a specific warning naming the field and the manualmark_raster(...)workaround. An explicitRenderConfig(raster_aggregate=..., raster_field=...)still wins wholesale over the color-driven default. - Breaking: every composite constructor (
HConcatChart,VConcatChart,ConcatChart,LayerChart,JointChart,RepeatChart,ClusterMapChart) now raisesTypeErrornaming the offending type for a child that isn't aChartor composition object, instead of constructing silently and failing much later at render time with a generic node-kind error.chart | non_chart/chart & non_chartnow raise Python's own operatorTypeErrorinstead of building a broken composite around the invalid operand. - Fixed (close cycle ¾, H3-4): a composition's
.properties(title=..., subtitle=..., caption=...)now actually renders for every one of the three chrome keys, on all seven wrappers —to_svg()/.interactive()previously raised an unmappedTypeError: 'Title' object is not an instance of 'str'onsubtitle=/caption=fm.Title(...), a spellingto_dict()/to_json()silently accepted.title=fm.Title(text=..., subtitle=...)now routes theTitle's ownsubtitleinto the composite's separate (already-working) subtitle slot instead of silently dropping it, unless an explicitsubtitle=is also given in the same call, which raisesValueErrornaming both spellings. ATitlefield with genuinely nowhere to go on a composite (anchor,offset,font_size,font_weight,color,subtitle_font_size,subtitle_color;subtitleitself onsubtitle=/caption=, or onLayerChart'stitle=, which has no separate subtitle slot) raisesValueErrorat.properties()time rather than silently vanishing. A leafChart's owntitle=is unaffected and keeps fullTitlerichness. - Fixed (close cycle 4):
encode(color=fm.Color("g"), fill=fm.Fill(condition=cond))— a fieldlessfillconditioningcoloralongside a basecolorencoding — builds again. Cycle 3's alias-collision guard raised on this call unconditionally; a fieldless alias source has no field for the alias to drop, so there was nothing to collide with. The equivalent bare-ConditionalSpecspelling (encode(color=..., fill=cond)) was never affected. - Fixed (close cycle 4):
Chart.layer(Layer(encoding={"color": cond}))— the bareConditionalSpecspelling inside a layer's encoding, matchingencode(color=cond)— now reaches the chart's real conditional pipeline instead of silently vanishing (no warning, no conditional, the key simply absent from the serialized layer). Cycle 3 only routed the channel-carried spelling (Layer(encoding={"color": fm.Color(f, condition=cond)})).
Breaking changes¶
annotate_arrow(...)renders a filled arrowhead by default on every render path;annotate_vline(..., label=...)'s label moves from the bottom to the top of the line.BreakAxisextent/glyph/tick placement changes to match the documented clipping model (three existing break goldens moved by one element — the restored axis title); in-gap annotations now suppress with a warning instead of rendering at the wrong position, and surviving annotations remap through the break.- A
BreakAxiswhose gaps all miss the (padded) axis domain now renders exactly the unbroken chart instead of an up-to-8px-shifted approximation of one — no goldens move (no shipped break golden has out-of-domain gaps on a continuous axis). Inset(bounds=...)raisesValueErrorat construction for out-of-range, negative-pixel, or empty-box entries that previously constructed silently.- A channel's
condition=kwarg that isn't aConditionalSpecnow raisesTypeErrorinstead of being silently accepted and serialized into a dead wire blob. A conditional declared on a channel that cannot carry one (text,tooltip,detail,href,key,url,description, the facet channels, and the positional channels) raisesValueErroratencode()time naming the supported set — before this batch such a call was silently inert. - Charts past
raster_thresholdwhosecolorchannel names a numeric column with no explicit type now substitutemark_raster(previously they stayed vector and warned, on the mistaken grounds that an unannotated column is categorical). LayerChart.to_dict()omitstitlewhen no title is set, instead of emitting"title": None— the same omit-when-unset rule the other six composition views now follow. A composition'sto_dict()titleis a{"text": ...}dict (the leaf chart's own title shape), not a bare string.strokeandshapeare not conditional targets:encode(stroke=<ConditionalSpec>),encode(shape=<ConditionalSpec>), and theStroke(field, condition=...)/Shape(field, condition=...)spellings all raiseValueError.fillandstroke_dashare unaffected. Ashapeconditional previously built and rendered — it just had no visual effect.- Two conditionals resolving to the same wire channel (e.g.
encode(color=condA, fill=condB), or a secondChart.conditional()on an already-conditioned channel) raiseValueErrorinstead of both reaching the wire. - Composite constructors and
|/&operators raiseTypeErrorfor a non-Chart, non-composition child/operand instead of constructing silently. - Quantitative-color charts past
raster_thresholdnow substitutemark_rasterinstead of silently staying vector. - (close cycle ¾)
Chart.layer(Layer(encoding={"color": cond}))(both the bareConditionalSpecand channel-carried spellings) now lands the conditional in the chart's realconditionalspipeline instead of the dead per-layer wire blob; astroke/shape/x/yconditional inside a layer's encoding now raises the same typedValueErrorencode()raises. - (close cycle ¾)
encode(color=fm.Color("d"), fill=fm.Fill("c", condition=cond))(and the layer-encoding equivalent) now raisesValueErrorwhenfillcarries a field — previously it silently droppedfill's field while keeping its conditional, which then overrodecolorat selection time. A fieldlessfill=fm.Fill(condition=cond)is unaffected and still builds. - (close cycle ¾) A composition's
.properties(title=..., subtitle=..., caption=...)now renders for all three chrome keys on all seven wrappers; aTitle's ownsubtitleroutes into the composite's subtitle slot (or is refused, typed, if it collides with an explicitsubtitle=); aTitlefield with no composite-chrome slot (anchor/offset/font_size/font_weight/color/subtitle_font_size/subtitle_color, orsubtitleonsubtitle=/caption=/LayerChart'stitle=) raisesValueErrorinstead of silently vanishing. A leafChart's owntitle=is unaffected and keeps fullTitlerichness. - (close cycle 4)
Chart + Chartnow raisesValueErrorwhen both sides carry a conditional on the same wire channel (e.g. both conditioncolor) — previously it built with two conditionals stamped the same channel and no defined winner (the WASM runtime applies every conditional to every mark batch in every panel, with no per-layer scope). Two layers conditioning different channels still compose freely.
0.22.0 — 2026-09-07¶
Two correctness campaigns land at once: the transform-engine batch (#168 — one dtype policy across ~20 transforms, live groupby= for regression/loess/impute/top_k, tie-aware ranks and peer-aware window frames, an expression grammar that parses its own documented forms, real glm/gam smoothers, and a Rust-owned transform_registry that Python derives from instead of mirroring) and the mark-geometry batch (#177 — real monotone/basis/cardinal curves on line/area/ribbon, arc corner fillets, mark_function(clip=False), standalone bin=True with per-bin aggregation, facet strip titles, coord guards, and a boxen/violin/boxplot/contour truth pack). Silent parameter drops die loudly throughout.
Added¶
-
Breaking (close-review hardening):
mark_smooth(method="gam")gainsk=(basis dimension, default 10, clamped to[4, distinct x count]— the knob for under-smoothing on high-frequency data; refusesk < 4andk=on non-gam methods). Explicitbandwidth=on a non-loessmark_smoothmethod now raises typed instead of being silently ignored (matchingdegree='s policy).ferrum._core.transform_registry(kind)gains a fourth key,"secondary_outputs"— the named secondary batches (qq reference line, letter-value bands/outliers, linkage dendrogram) are now declared schema, not unchecked literals; the name-prefix rule is uniform across all three, which changes one runtime key: aferrum.QQ(name=...)spec's reference-line batch is now published as"{name}_qq_line"instead of the bare"qq_line"(unnamed specs are unchanged). Two formerly-silent aggregate-name fallbacks inpivotandtop_k(an unknown aggregate quietly summing) now raise typed errors. -
Breaking:
rankanddense_rankwritten without afieldare now tie-aware (behavior change). A window op written the way the guide writes it,{"op": "rank", "as": "rank"}, used to fall back torow_number, so tied sort values drew distinct, order-dependent ranks. Ranks now come from thesortcolumns: rows equal on every sort column share a rank, competition-style forrank(1, 1, 3) and dense-style fordense_rank(1, 1, 2), matching SQL and Vega. An explicitfield=keeps its field-keyed behavior unchanged, and a spec with nosort=still ranks by row order. -
Breaking: Rolling window frames are peer-aware by default (behavior change).
transform_window(..., frame=...)now treats rows tied on thesortkey as a unit: the frame is anchored on the unit's own row-offset bounds and then both ends of that range grow outward to whole peer groups, so tied rows always share one frame and therefore one aggregate value and a frame boundary never splits a peer group. Vega'signorePeers: falsedefault also expands both ends outward viaWindow.jsadjustRange(bisect.left/bisect.right), but diverges in its anchor: Vega anchors each row's frame on the current row (i0 = max(0, i - preceding),i1 = min(n, i + following + 1)), whereas ferrum anchors on the peer run's bounds. This guarantees ferrum's tied rows always share one frame and one value; Vega's need not. Example: on a sort keyt=[1,1,2,3,3]with valuesx=[10,20,30,40,50]andframe=(-1,0), ferrum outputs[30,30,60,120,120]while Vega outputs[30,30,60,120,90]— only the last row differs. Pass the newtransform_window(..., ignore_peers=True)to restore the previous row-offset frames. Only rolling aggregates with an explicitframeover a sort key that actually has ties are affected; all other window output is byte-identical. -
The expression grammar (
transform_filter/transform_calculate) gains array literals ([e1, e2, …]), function-call syntax, and one builtin,indexof(array, value)— the documented membership formindexof([1, 2, 3], datum.id) >= 0now actually parses; it previously raised on the,inside the array.transform_filter's dict-list shorthand ({"field": [...]}) compiles to exactly this form. Fixed: a dict/scalar filter value that was a PythonboolorNonepreviously leaked Python's capitalizedrepr()(True,None) into the generated predicate, which the grammar cannot parse (unexpected identifier: 'True') —fm.transform_filter({"active": True})now works. All three dict-filter branches also normalize numpy/pandas scalars (np.int64,np.float64,np.bool_) like their Python-typed equivalents and refuse non-finite floats and unsupported types by name. -
ferrum._core.transform_registry(kind: str) -> dict— a new Rust-owned registry giving the method vocabulary, output schema, and accepted parameters for any transform kind (ValueErrornaming the known kinds otherwise). Several previously hand-maintained Python mirrors (mark_smooth's method validation, KDE kernel and QQ distribution vocabularies, output-column names used by figure/desugar consumers) now derive from it instead of risking drift from the Rust implementation. -
transform_top_k(groupby=...)— top-k per category: the aggregate (opoverfield) is computed per groupby key, the keys are ranked, and every row belonging to a top-nkey survives. Withoutgroupby=the behavior is byte-identical to before (the field's own distinct values double as the group key — a documented historical quirk, not the per-category use case). A row whose groupby key is null belongs to no group and is dropped from grouped output; a bare-stringgroupbyraises (iterating a string yields characters, not column names). -
Breaking:
lmplot/regplotnow draw real fit lines and CI bands formethod="logistic","glm", and"robust"— previously those branches referenced a nonexistentfittedcolumn and raised (or rendered no fit line withscatter=True).lmplot'smethod=vocabulary widened from 5 to 10 names: the smooth-family set (lm,loess,quadratic,cubic,log,sqrt,gam) now derives live from the transform registry, withglmstill mapped to the dedicated GLM transform (its ownfamily=/link=surface). Forlogistic/glm/robustwith any group-color encoding (hue=, or any channel the encoding alias table resolves to color —color=/fill=/stroke=, as keywords or viaencode=), the fit is pooled across groups (those transforms have no per-group fitting yet) and is drawn in a neutral theme stroke rather than a group color. Four formerly-silent parameter drops now act:order='s default changed1→None("the method's own default degree") and any explicit value — includingorder=1— forwards into every smooth-routed method's degree-acceptance matrix (quadratic/cubicaccept their own degree and raise on conflicts;log/sqrt/gamraise since they have no degree concept;loesstakes it as the local-fit degree, soorder=1now gives the linear local fit it asks for; negative values raise typed),truncate=forwards torobustand raises typed forlogistic/glm(which have no extent concept),show_metrics=works for every smooth-routed method plusrobustinstead of onlylm, andx_bins=/x_estimator=now bin/estimate for every smooth-routed method instead of onlylm— a chart passing them with e.g.method="loess"renders differently (previously they were silently dropped); forlogistic/glm/robust(whose dedicated transforms take no binning parameters) an explicitx_bins=/x_estimator=now raises typed liketruncate=does, instead of being silently ignored. -
KDE kernels
"exponential"(exp(−|u|)/2) and"linear"(triangular,1−|u|) join the one shared kernel dispatch, somark_density(kernel=...)'s documented list now computes end to end;mark_qq(distribution="lognormal")produces real lognormal theoretical quantiles (it was documented but refused by a stale validation tuple); andtransform_densitygainskernel=(default"gaussian", sharing the same dispatch — its gaussian output moves on the order of 1e-15 relative from a summation-order change, invisible at SVG precision). -
Breaking:
mark_smooth(method="glm")is newly accepted and fits a real GLM (IRLS via the sharedglmcore, Gaussian/Identity default), andmark_smooth(method="gam")is newly accepted and fits a real generalized additive model — a penalized cubic B-spline (P-spline) with a second-order difference penalty and a smoothing parameter chosen by generalized cross-validation, with the spline's Bayesian posterior confidence band. Both strings previously refused as unknown methods, so no existing chart changes.gambends to follow the data the wayloessdoes but is fully deterministic: it uses no randomness at all, soseed=has no effect on its band. It takes nodegree=(the spline degree is fixed at 3; smoothness comes from the penalty), and it holds its boundary value outside the observed x range rather than extrapolating a cubic.method="lm"withdegree>=2now routes to genuine polynomial regression. Formerly-silent paths now raise:degree=passed tolog/sqrt(previously ignored;glmrefuses it too), adegree=that conflicts withquadratic/cubic's own degree (previously ignored — the error namesmethod="lm", degree=das the escape hatch; a redundant matching degree is still accepted), and a whole-frame polynomialdegreeat or above the usable point count (previously rendered an empty plot with no warning — this includes barequadratic/cubicon 2-/3-row frames). A degenerate group in agroupbyfit, or a degenerate facet panel, still degrades to a NaN range instead of raising. TheSmoothconstructor'sdegreedefault changed from2toNoneso a baremethod="lm"stays linear. All other existinglm/loess/quadratic/cubicoutput is byte-identical. -
Breaking:
mark_line,mark_area, andmark_ribbonall render realinterpolate="monotone"(Fritsch–Carlson),"basis"(uniform cubic B-spline), and"cardinal"(Catmull–Rom) curves through one shared Rust curve module. Previously"monotone"/"basis"/"cardinal"silently fell back to a straight line onmark_line/mark_area, andmark_ribbonrefused anyinterpolate=other than the default outright. An interpolate value outside the seven-name vocabulary (linear,step,step-before,step-after,monotone,basis,cardinal) now raises on every mark that accepts the kwarg, via one shared typed error. Two disclosed byte-family changes on charts that already passinterpolate=(never on charts that don't): a banded/stackedmark_area/mark_ribbonunder a step variant now steps both boundary edges instead of only the top one; and a series whose independent axis isn't the vertical screen axis (Stack(value_axis="x"), or any chart underCoordFlip) now curves along its true axis instead of always assuming vertical. -
mark_arc(corner_radius=...)— previously accepted by the mark-kwargs allowlist but never read — now clips each wedge corner with an exact tangent-circle fillet, clamped per-corner to fit; the same wedge path renders a rounded polarmark_bar.corner_radius=0(the default) is byte-identical to every arc/polar-bar render from before this change. Interactive-only, disclosed: polar wedge scenes (arc and polar bar) gain apolar_spanskey per node, so a full-circle wedge (a one-slice pie, a single-grouppad_angle=0donut) is now hittable at every angle instead of only across a half-ring; static SVG is unaffected. -
a rug
mark_tick(band_size=...)— one quantitative axis encoded, no categorical channel — is no longer silently ignored. It now scales the rendered tick length by the panel's cross-axis extent (height for an x-rug, width for a y-rug). An unsetband_sizekeeps the old fixed length exactly, not the ordinal default of0.6(which would turn an untouched rug into panel-spanning bars). Ordinal-tickband_sizeis unchanged, including a strip-plot-style tick that declares an ordinal axis alongside its own quantitative one; only a tick whose x resolves to a quantitative scale while y is also separately declared (the boxplot-cap/errorbar-cap idiom, not a rug) keeps its fixed length and ignoresband_size, by design. -
Breaking:
mark_geoshapewith geometry present under any coordinate system other thanCoordGeo, andmark_arcunder any coordinate system other thanCoordPolar, now raise a typed error naming the mark and the required.coord()fix — instead ofmark_geoshaperendering a silently empty panel (axis furniture only, no geometry), ormark_arcfailing later with a generic missing-channel error that didn't name the real cause.mark_image's existing documented empty-scene behavior under a non-Cartesian coord is unaffected. Interactive-only, disclosed:fm.layer(cartesian_chart, polar_arc_chart).interactive()now refuses with the same typed error (the merged-flat interactive lowering drops the secondary layer's own coord, so the arc mark genuinely has none to satisfy its guard by the time it resolves); the identical chart's staticto_svg()/to_png()is unaffected, since the composite overlay tree renders each layer against its own coord. -
Breaking:
X(field, bin=True)/Y(field, bin=True)finally render on a standalone chart. Previously the encoding kept pointing at the original, unbinned field after theBintransform replaced the batch schema, so the chart either raised an unknown-column error or rendered garbage. TheBintransform gains optional per-bin aggregation of a second column (agg_field/agg, drawn from the standard aggregate vocabulary) emitted as a newagg_valueoutput; the encode path automatically foldsX(v, bin=True)+Y("w", aggregate="mean")into oneBin(the "standard histogram pattern" the docs already claimed works). Every rewritten channel's axis title recovers the user's own field name instead ofBin's internalbin_start/agg_valuecolumn names. A layered binned chart also gains anx2/y2span so binned bars draw their true bin width instead of the mark's default width — the one disclosed byte-family change on charts that already passedbin=True. Six new typed refusals replace what used to be either a silent no-op or a confusing downstream error: more than onebin=in an encoding; more than one channel carryingaggregate=; the same channel carrying bothbin=andaggregate=; a fieldless non-countaggregate; a pre-builtbin=Bin(...)asked to also absorb an opposingaggregate=; and an unknown aggregate method name. -
mark_function(clip=False)is a real toggle instead of a hard raise. The curve now genuinely extends past the panel edge for out-of-domain evaluation points, via a new per-batch scene-graph clip escape (MarkBatch.clip) rendered by both the SVG and WASM walkers.clip=True(the default) is byte-identical to every render from before this escape existed.
Fixed¶
-
Breaking: Every value column a statistical/window/flatten/aggregate transform reads now accepts any integer, unsigned, or float dtype (widened to
Float64), instead of hard-rejecting anything butFloat64(about 20 transforms, includingmark_errorbar,mark_smooth,mark_boxplot/boxen/violin,mark_raster,mark_swarm,transform_regression/loess/impute, anddata_bin/data_stack/pivot) or silently emitting nulls/NaN/an unsorted result for a dtype it couldn't handle. A dtype it genuinely cannot read now raises, naming the transform, column, and dtype, instead of the two silent failure modes:transform_filter/transform_calculateover aUInt8/UInt16/UInt32/Float16column used to silently evaluate toNullfor every row (anInt64column with identical values worked fine) — the expression field reader now reads every numeric width plusLargeUtf8;transform_timeunitwith an unrecognized unit string used to emit an all-NaNcolumn instead of raising;transform_top_kwith an unsupportedfielddtype used to synthesize arow_{n}key per row (silently defeating grouping) instead of raising.transform_flattenon a list-of-Utf8 column now emits real strings (it used to emit an all-nullFloat64column for any non-numeric list element type); list-of-int/float widens toFloat64; a carried (non-flattened) column now preserves its exact dtype via Arrow'stakekernel, including aFloat64column's nulls staying null instead of becomingNaN. The Python-sidecast_columns_to_float64shim ahead ofboxplot/boxen/violin/swarmis deleted — it silently coerced non-numeric-looking columns (including numeric strings) before the engine could refuse them by type; the engine's own typed refusal now applies uniformly. Every dtype that worked before renders byte-identically. -
Window
sort=andfield=columns accept every numeric dtype, and refuse the rest. An integer, unsigned, float or temporal column insort=used to compare as "equal" and leave the window unsorted, so the guide's own cumulative-sum-over-integer-dayexample accumulated in row order. An integerfield=used to read as NaN, solag,leadand the rolling aggregates returned an all-null column. Both now coerce once per transform. A dtype the window can neither order nor aggregate (Boolean,Binary, list types) raises aValueErrornaming the transform, the column and the dtype instead of silently producing an unsorted window or an all-NaN column, and a text column used as a numericfield=raises rather than aggregating to NaN. Afield=is now interned (and validated) even for ops that never read it, such asrow_number—{"op": "row_number", "field": "ghost"}now raisesdata_window: column 'ghost' not foundinstead of silently ignoring the field. -
Nulls in a window
sort=column order last. A numericsort=column previously compared a null equal to every other value, which left the sort order dependent on input order and made "tied" intransitive; nulls now order last and tie only with each other. A text (Utf8/LargeUtf8)sort=column changes in the opposite direction: a null string previously coerced to""and sorted first (and made null a peer of a genuine""); it now orders last, consistent with the numeric case. -
A window frame lying entirely before its own row is now empty.
frame=(a, b)with a negativeb(a window that ends before the current row) used to wrap around an unsigned cast and silently aggregate the whole partition. It now selects no rows, so the aggregate isNaN, or0forcount. -
transform_regression(groupby=...)andtransform_loess(groupby=...)were declared on the wire and accepted by Python, but silently ignored by the Rust transform — every group's fit collapsed into one global curve, and the output never carried the groupby column, socolor=against it raisedunknown column. Both now fit independently per group, appending the groupby column at its original dtype; each group's output grid spans that group's own x-range, matchingmark_smooth's existing grouped behavior. Ungrouped output is byte-identical. -
Breaking:
transform_impute(groupby=...)computed one fill value across the whole column regardless of group; it now computes each group's fill value from that group's own rows. A group with no non-null values of its own falls back to the whole column's statistic rather than degrading to0.0(which would silently distort the domain) or±inf(which would drop the group's rows from the render).transform_impute(key=..., keyvals=...)is newly implemented with Vega semantics: within each group (or the whole batch, with nogroupby), the key universe iskeyvals=when given, else the distinctkeyvalues observed across the batch; a key missing from a group gets one row appended with the key and group columns set and every other column null.keyvals=withoutkey=raises; akeyvalselement outside the key column's own dtype width (e.g.3000000000against anInt32key) raises instead of silently wrapping to a corrupted or duplicate key. -
mark_swarm(size=/spacing=)andmark_raster()'s defaultresolution="screen"were silently inert in every real render — the transform pipeline never received the chart's pixel dimensions, so swarm always used a fixed collision radius in raw data units (not pixels) andresolution="screen"always produced a fixed 256×256 grid regardless of chart size. Both now respond to the chart's actual dimensions via a pre-layout size estimate — raster's grid genuinely scales up with a bigger panel. Swarm's pixel spread responds only to its value-axis panel dimension, inversely (height when vertical, width whenorient="horizontal"): a longer value axis produces a smaller spread at the samesize=, since less cross-axis displacement is needed to avoid collisions. The cross-axis panel dimension has no effect. This is an approximation (it excludes axis/legend/facet-strip gutters, unknowable before layout), not an exact match for the rendered plot area — see the dated note inferrum-spec.md§3.3 (Marks) for the full contract. An explicit numericresolution=is unaffected.mark_raster()/mark_violincharts change by a small amount (the estimate is close to the true panel size);mark_swarmcharts change qualitatively, not slightly — since the pre-fix radius was a constant in the value column's own units, a column ranging over thousands produced no collisions at all and the cloud collapsed to a single line, regardless ofsize=/spacing=. No other chart's output changes. -
mark_ticknow renders per-rowcolor=/fill=/stroke_opacity=/opacity=encodings — previously every tick rendered in the theme's flat default color and full opacity regardless of an encoded channel. Interactive-only, disclosed: one-channel tick layers in the merged-flat interactive assembly now dispatch by their declared shape (extending the existingmark_ruleown-channel normalization tomark_tick), converging interactive tick geometry onto what static SVG already rendered — zero static byte movement. -
mark_contour/bivariatemark_densityfill mode no longer leaves a permanent unfilled hole at the density peak. The highest band now extends to the surface's true maximum instead of stopping at the second-highest threshold, sothresholds=1renders a real band instead of nothing, and the color legend/colorbar (keyed off the same value) now reports the true peak instead of the second-highest threshold. Gaussian smoothing (smooth=True, the default) now runs before level computation instead of after, so isolines/bands derive from the same surface being contoured — asmooth=Truechart's contour lines/bands may shift visibly;smooth=Falsecharts are unaffected. -
mark_violin(inner="quartile")'sq1/median/q3ticks now confine to the violin's own body width instead of spanning the full panel — the same "a bare{x, y}mark="rule"draws a full-panel span" root causemark_boxen's median line had. A hue split (color_fielddistinct from the categorical axis) still isn't per-hue dodged for these ticks — an existing, unchanged limitation, not new drift from this fix. -
mark_boxplot(extent="min-max")no longer flags points beyond a fixed 1.5×IQR fence as outliers when the whiskers already reach the data's true min/max. The outlier point layer is now suppressed entirely for"min-max", regardless ofoutliers=. -
Breaking:
mark_boxen's depth cap unifies at 12, raised from two independent, disagreeing caps (6 in Python, 8 in Rust) — datasets large enough to compute deeper letter-value bands (k_depth="full"at a few hundred rows;"tukey"/"trustworthy"in the thousands) now render those previously-dropped bands instead of going visually inert once both caps saturated.palette=now samples 11 colorable slots instead of 5 — a continuous scheme's sampled colors shift on every existingpalette=chart; a categorical palette's first 5 colors are unaffected. The default opacity ramp renormalizes against each chart's own real materialized depth rather than the configured cap, keeping adjacent-band contrast visible on typical (shallow-depth) charts instead of flattening it. The median layer is now a band-confinedmark="tick"instead of a full-panel-spanningmark="rule". Every layer's axis titles recover the user's field names instead ofLetterValue's internalgroup/lower/upper/valuecolumn names. The"outliers"secondary batch now emits only the true fenced-out rows instead of every observation — and, because the raised depth cap means a large-enough dataset (n ≳ 4096under Tukey's own formula) now computes one or more letter-value depths deeper than before as the dataset grows (exactly one depth deeper just past that threshold, more at larger sizes, clamped once the new cap of 12 is reached), the outlier fence itself also tightens for those large datasets, on top of the pure filtering fix; smaller datasets see only the filtering change, not a fence shift. -
Facet/FacetRow/FacetCol'stitle=kwarg — accepted silently but completely discarded — now reaches the rendered strip and the serializedfacetdict, rendering"{title}: {value}"when a title is set.Chart.facet(title=...)sets the primary/wrap-dimension strip's title. Facets with no title set remain byte-identical.
Breaking changes¶
Concise index of the behavior changes; each has its full disclosure in the Added/Fixed bullet it names.
- Transform dtype policy: a column dtype a transform genuinely cannot read now raises a typed error naming the transform, column, and dtype, where about 20 transforms previously emitted silent nulls, NaN, or unsorted output; the Python-side
cast_columns_to_float64shim is deleted. - Window semantics:
rank/dense_rankwithoutfield=are tie-aware; rolling frames are peer-aware by default (transform_window(..., ignore_peers=True)restores row-offset frames); nulls in asort=column order last, including text columns where a null previously coerced to""and sorted first. - Registry hardening: a named
ferrum.QQ(name=...)spec's reference-line batch key is now"{name}_qq_line"; an unknown aggregate name inpivot/top_kraises instead of silently summing; explicitbandwidth=on non-loess anddegree=on degree-lessmark_smoothmethods raise. lmplot/regplot:order='s default changed1→Noneand every explicit value now forwards;truncate=,show_metrics=, andx_bins=/x_estimator=act (or raise typed) on every method instead of being silently dropped for all butlm;logistic/glm/robustfits pool across group-color encodings and draw in a neutral stroke.mark_smooth: conflicting or degeneratedegree=values raise instead of being ignored or rendering an empty plot; theSmoothconstructor'sdegreedefault changed2→None.- Panel-size awareness:
mark_swarmclouds that previously collapsed to a line now spread (a qualitative change — the old collision radius was in raw data units);mark_raster(resolution="screen")grids scale with the panel. - Curves: charts already passing
interpolate=step both boundary edges of banded/stacked areas under step variants, and curve along their true independent axis underStack(value_axis="x")/CoordFlip. - Binning: layered charts already passing
bin=Truedraw true bin-width bars (x2/y2span); six formerly-silent bin/aggregate misuse patterns raise typed errors. - Contours:
smooth=Truecharts derive isolines/bands from the smoothed surface (a visible shift); the peak band now exists and the colorbar reports the true maximum. mark_boxen: the depth cap unifies at 12 (deeper bands render; the outlier fence tightens forn ≳ 4096),palette=samples 11 colorable slots, and the opacity ramp renormalizes per chart.mark_boxplot(extent="min-max")suppresses the outlier point layer entirely.- Coord guards:
mark_geoshapeoffCoordGeoandmark_arcoffCoordPolarraise typed errors naming the fix, instead of a silently empty panel or a generic downstream error;fm.layer(cartesian, polar).interactive()refuses with the same error.
Changed¶
- The interactive WASM bundle is rebuilt with the batch-E scene contract:
polar_spanshit-testing for full-circle wedges, shared curve tessellation, and the per-batch clip escape.
Documentation¶
- Batch D and E behavior is documented where users read it: the data-transforms guide (registry,
groupby=, window frames, kernels), the marks-encodings guide, and datedferrum-spec.mdnotes — every claim probe-verified against live renders.
0.21.0 — 2026-09-04¶
Four correctness campaigns land at once: the appearance-resolution batch (color/opacity/dash scales resolve end to end, one CSS color parser), the config-plumbing batch (every parsed configure_*/format/padding/legend field honored or typed-refused), the scale-variants batch (reverse= on every continuous positional scale, real d3 band/point padding+align geometry closing #67, TimeScale datetime domains and a pinned UTC contract, a wire-level scale-key gate), and the 2026-08 residuals/findings batches (total overlay chrome dedup, keyed interactive transitions, typed panel chrome slots). Silent parameter drops die loudly throughout.
Added¶
reverse=TrueonLinearScale,LogScale,PowScale,SqrtScale,SymlogScale, andTimeScale— domain-swap sugar applied at render time; the raw-dictscale={"type": ..., "reverse": true}spelling is honored identically.PointScale.reverse(a different mechanism, #65) is unaffected.TimeScale(domain=None)constructs with an inferred domain like its continuous siblings;domain=also acceptsdatetime.date,datetime.datetime(naive or aware), and ISO-8601 strings, in addition to epoch-ms floats- Unknown raw-dict
scale={...}keys refuse at the wire boundary, naming the offending key, the scale type, and the accepted list — closing the last#[serde(flatten)]silent-drop carve-out; the accepted-key table is published asferrum._core.scale_accepted_keys(scale_type) Chart.overridescale paths now derive from the wire schema itself: seven wire keys gained override paths (nice,zero,stops,domainParam,paddingInner,paddingOuter,domainMid), snake_case aliases (padding_inner,padding_outer,domain_mid,domain_param) are accepted alongside the wire spellings, and five previously advertised-but-broken leaves now work;utcandquantiles(never functional as overrides) refuse with the registry's own guided error.ferrum._core.validate_scale_dict(scale)validates any raw scale dict through the same gate that enforces it.scale=honored forStrokeOpacityandStrokeDash; opacity and dash scales resolve end to end with auxiliary legends- One full-CSS color parser — 148 named colors,
rgb()/rgba(), strict boundaries; literal colors validate at mark construction (loud, sentinel-aware) - Discretizing color scales (
Quantile/Quantize/Threshold) resolve — buckets, swatched colorbars, loud configuration;ContinuousSchemeis constructible andGradientrenders underscale= - Heatmap appearance kwargs take real effect; inert continuous color on line and ribbon now fails loudly instead of silently flattening
- Config wire-key gate,
axis_y2, and a field-disposition manifest; format presets resolve on all five Python surfaces;format_typethreads end to end (time presets, real ordinal, typed spec refusals) - Padding validates at every Python entry point with typed pixel-contract refusals;
padding.autois real and opt-in, andPaddingExceedsViewporttells the truth - Axis label culling is reachable with a real pixel-gap semantic; the legend
orient/direction/valuescontract is real; axis config plumbing — every parsed field honored or typed-refused raster_aggregatehonest surface — construction refusals,raster_fieldthreaded- Typed chrome-vs-content
Panelslots (below_marks,chrome_above); total overlay chrome dedup — one shared plot rect, suppression gate retired (#89) mark_boxen(palette=)colors the depth bands (#91); keyed interactive transitions with object constancy — enter/exit fades at any batch size (#93)label_anglehonored on the y axis (full transpose); theta-gated single-axis exemption for arc marks
Fixed¶
BandScale(padding=/padding_inner=/padding_outer=/align=)andPointScale(padding=)observably change bar/box/tick/heatmap-cell geometry, following d3's own layout model; categorical axis tick labels now land exactly on bar/box/tick centers for a padded scale with no explicitrange=— previously the two disagreed by several pixels (#67)TimeScale(utc=True)/utc=Falserender byte-identical SVG, and theutcwire tag survives resolution (previously silently dropped tofalseregardless of the source tag).override(<channel>_scale_domain=...)on amark_bar()chart no longer includes a spurious zero-anchor — it now matches the equivalent explicitscale={"domain": [...], "zero": False}spelling (behavior change; seeferrum-spec.md§3.6's 2026-09-04 dated note)BandScale(range=...)combined with an explicitAxis(values=...)tick-value override no longer panics — it now renders, landing the relabeled ticks on uniform slotsLayerChartgains|and&composition operators; one canonicalto_polarscoercion; user-facing messages name channels as the user wrote them underCoordFlipencode()is a total function — five channel buckets,keyhonored, silent drops killed; the 17 accept-and-delete mark parameters resolved (implemented, removed, or documented); closed vocabularies enforce at construction- Deprecated axis
x/yoverride spellings refuse with an accurate typed hint - One axis label-band quantity, gated on labels actually drawing (#97); degenerate-domain guards across continuous scales (#99, #104)
- Non-Utf8 color columns group line and ribbon series; literal-paint layers keep their paint under inherited color channels; categorical-intent
color_fieldcolumns type Nominal at the desugar - Phase-10 diagnostic charts (ROC/PR family) gained their legend titles; heatmap default cell borders now parse — goldens re-blessed and visually verified
- Temporal scale domains accept
numpyscalars andDecimalidentically on chart-level and layer routes
Breaking changes¶
BandScale.scale()returns d3's band leading edge, which moves forpadding_inner > 0:BandScale(domain=list("abcd"), range=[40, 260]).scale("a")is now45.366, was48.049— correcting a placement that let the last band extend past the declared range end.bandwidth()andPointScale.scale()are unaffected. Default (unpadded) output is byte-identical.- Naming
BandScale()explicitly now carries d3's ownpadding = 0.1default (on both sides), where an auto-inferred categorical axis still constructs unpadded — a chart withscale=fm.BandScale()(or any explicitBandScale(...)with nopadding=argument) renders narrower bands than before, with no padding argument anywhere in user code (four categories,mark_bar():112.327px auto-inferred vs.98.629px forscale=fm.BandScale()). - The label-collision budget (
cascade_slot_w/cascade_slot_h) now derives from the true adjacent-tick spacing (min_adjacent_gap(centers)) instead of a scale-blind quarter-slot heuristic, changing when axis labels rotate or wrap on non-default categorical scales: about 2.4% tighter (w/4 → w/4.1, more rotation/wrapping) underpadding=0.1, and about 33% looser (w/4 → w/3, less) underPointScale(padding=0). Default (unpadded) categorical axes are unaffected (the change is ulp-scale only there). mark_tick(band_size=)andmark_rect(band_size=)unify on full-length semantics (#85): an explicitband_size=value that previously measured a half-length extent now measures the full slot, so explicit values render up to twice their previous extent (defaults unchanged).
Changed¶
config_applyextracted fromrender/mod.rs— configuration-application ordering is a test-pinned API property (#143);render/mod.rsroughly halves- Structural refactor waves:
StructuralOutputcollapse,SlotRescaleCtx/PanelResolveCtxbundles, typedRangeProvenance, slot-index accessors,BatchPositionMeta(#41, #57, #61, #63, #64, #79, #86) - ~38 closed-choice validation sites route through one
validate_choice; the five-bucket channel policy homed inencoding/_channel_policy.py(#103); inverted marks/diagnostics → plots dependency edges deleted;coord_flippedis a typed state
Documentation¶
- Corrected two falsified claims below: the
0.10.0(2026-05-20) entry claimingreverse=on continuous positional scales had shipped (it hadn't — not until this release), and the0.20.2(2026-07-23) entry claimingBandScale(padding_inner=)was confirmed geometrically inert on the dodge path (it no longer is, as of this release)
0.20.2 — 2026-07-23¶
A patch release closing out every open bug issue: annotation overlay, dodge geometry, tooltip provenance, and stacked-rendering fixes (#58, #66, #77, #78, #84). Two fixes are visibly rendering-correcting: boxplot median lines previously drew at twice their box width, and stacked histograms previously relied on paint order rather than true base-to-value segment geometry.
Added¶
None
Fixed¶
- Labeled
annotate_arrowstays a plainChartand survives+overlay — previously the labeled form returned aVConcatChart, raisingTypeErroron overlay and splitting standalone rendering into two panels (#84) - Dodged mark widths (bar/rect/tick) clamp to their sub-band, so
Dodge(padding > 0.1)can no longer render overlapping groups;BandScale(padding_inner=)was confirmed geometrically inert on the dodge path (#66)
Correction (2026-09-04, batch C):
BandScale(padding_inner=)is no longer inert on the dodge path — the Unreleased batch above made scale padding real render geometry system-wide (closing #67), andDodgecomposes with it: scale padding defines the drawn band, andDodgesubdivides that band and applies its own padding within it. - Boxplot median lines span exactly their box body instead of twice its width — a tick-vs-rectband_sizesemantics drift in the boxplot desugar, exposed by the dodge clamp; affected goldens regenerated and visually verified (#66) - Tooltip provenance is carried by an explicit promotion marker instead of re-derived from structure: a genuine chart-wide.encode(tooltip=)on a merged chart now suppresses per-layer auto-injection even with mixed per-layer tooltips, and field-based linked selections get per-layer tooltip fields (own auto fields ∪ selection fields) instead of one shared set (#78, #58) - Horizontal stacked histograms and densities render correctly —mark_histogram(orient="horizontal", multiple="stack")previously raisedValueErrorfor every input. The stack's value axis is now carried on the wire (Stack.value_axis), mark drawers and domain widening are axis-aware, and all four bar drawers draw true base-to-value stacked segments — fixing the default vertical stacked histogram and real coord-flip stacked bars, whose segments previously overlapped and only looked stacked via opaque paint order (#77) - Labeled arrow+-overlay renders the same headless segment as every other arrow path (cross-path parity)
Other¶
- Violin facet goldens regenerated for the median-width fix; lock-file version sync; docstring reference conversions and new-user docs audit fixes
0.20.1 — 2026-07-15¶
A patch release of interactive-rendering and annotation fixes found after v0.20.0, plus a documentation pass (#80–#83).
Added¶
None
Fixed¶
- Interactive charts: bold text (figure title, axis titles, legend title) no longer renders blurry. The overlay
@font-facenow embeds the Inter variable font (font-weight:100 900) instead of a single-weight Regular face that forced the browser to synthesize faux-bold (#80) - Composite charts'
.show()(hconcat/vconcat/concat/jointplot/clustermap/layer) displays inline in Jupyter instead of printing raw SVG markup to stdout (#81) annotate_hline/annotate_vlinelabel=now renders the label and is preserved under+overlay onto a chart, where previously it was a documented no-op (#82)
Other¶
- The accepted mark-style
**kwargsare now documented in a canonical "Mark style kwargs" guide section generated from the enforced allowlist, with docstring cross-references replacing vague "…, etc." boilerplate (#83) - API reference: the config value-classes (
Configure,AxisConfig, …),resolve_format, andFerrumOverrideErrorare homed on a newconfigurepage, and the Altair comparison's stalemark_geoshape"not yet implemented" rows are corrected
0.20.0 — 2026-07-12¶
Two secondary-axis and composite-legend feature streams (#52, #16), the dodge-by-model compare= diagnostics (#42), and Band/Point range handling (#39/#65/#40) land alongside a release-scoped bug sweep that consolidated 23 edge-case defects into eight remediating issues (#69–#76).
Added¶
chart + SecondaryY(...)secondary y-axis: per-layer independent y-scale slots, dual-side stacked axis bands, and a per-(panel, slot) interactive runtime for dual-axis charts (#52)- One figure-level legend for a composition:
fm.Resolve(scale=, legend=), a compositor legend band for shared color/size resolve, andpairplot/jointplotrendering a single legend onhue(#16) - Shared color/size resolve now spans nested composites via a leaf-span union, so an outer
resolve={"color": "shared"}reaches leaves inside nested concats and layered overlays (#74) configure_legend(orient="none")suppresses a chart's legends and the figure-level band (#74)importance_chart/shap_bar_chart/cv_scores_chartrender dodge-by-model panels undercompare=; dodge eligibility extended to importance/shap_bar/cv_scores/text marks (#42)SecondaryYvalidates itsmarkagainst the primitive-mark set with a typed error (#71)- Axis-tick text nodes carry an explicit slot tag on the scene wire (#60, #73)
Fixed¶
- Scale constructors no longer silently fabricate placeholder ranges or accept non-finite values:
BandScale/PointScale/DivergingScale/SequentialScaleand the continuous scales raise typed errors on short or non-finite input (closing aLinearScale(range=[5.0])panic), and inverted band ranges yield non-negative bandwidth (#69) - An explicit Band/Point pixel range is re-anchored per facet panel, so marks and ticks stay within each panel instead of pinning to one absolute window (#70)
- Independent-y conflict detection is spelling-independent — both the
LayerChart(resolve={"y": "independent"})andchart + SecondaryYforms raise the same conflict underresolve={"y": "shared"}(#71) - The internal column-collision rename is deterministic and never leaks a
__rhs_sentinel into axis titles or tooltips; the original column name is shown (#71) - An explicit tooltip on the primary layer of a layered chart no longer leaks to other layers; a scale-domain
paramdeclared on a layer reaches the wire so the secondary axis reflects its declared domain (#71, #72) - Interactive dual-axis charts: hit-testing finds rescaled secondary-layer marks at their displayed position, and a single-tick secondary axis relabels under a slot rescale (#73)
jointplot(kind="reg")andjointplot(marginal_kind="box")render instead of crashing;pairplot/jointplotaccept an encoding object forhue;hist/hex+huerender one figure legend (#75)compare=diagnostics: a reserved"base"key raises instead of overwriting the primary model,top_k=0gives a legible error, infinite/NaN importances no longer corrupt the domain or ranking, and tied scores order deterministically (#76)- Dodge selects its band axis by resolved scale kind, fixing overlapping/desynced boxes for natively-horizontal marks (#75)
PointScale(reverse=)is honored at the positional resolver; categorical axis ticks sit at explicit-range band centers; a 3-elementDivergingdomain no longer truncates positional axes (#65, #39, #40)
Changed¶
- Per-layer y-domain resolution is unified: one param-aware resolver feeds both axis ticks and mark placement, and the layer→slot mapping is computed once at prepare time (
YSlotPlan) (#72) - The nested-resolve effective-mode gate is a single shared function across the domain-union and legend-band walks; the legacy secondary-axis silo and the dead spatial-index API were removed (#74, #52)
- Diagnostic domain/ranking/field-name helpers were de-duplicated into shared functions across the
plotsbuilders
0.19.0 — 2026-07-05¶
Breaking changes¶
compose_svg_horizontal/compose_svg_vertical/compose_svg_gridremoved from the public API — every composition renders through the unified Rust composite path; there is no public low-level SVG-stitching surface- All-empty compositions (e.g. zero-row
pairplot/jointplot) raise a typedValueErrorinstead of rendering a blank grid JointChart.share_scale()/ClusterMapChart.share_scale()raise a typedValueError— their panels share axes by construction (#53 tracks nativeresolve=support)LayerChartwith explicitresolve={"x"/"y": "independent"}raises a typedValueError(overlay one-panel contract; #52 tracks per-layer scales) — previously silently ignoredshare_scale()now resolves at render time through the composite tree with transform-aware unions (box whisker reach, KDE support); it no longer injects explicitscale=dicts onto child charts
Added¶
- composite spec tree types for the Rust composite render path (#45)
- per-panel LayoutScale for ratio-fitted composite cells (#45, D4a as amended)
- composite scale-resolution pass (#45, pass 1 of 3)
- thread D4b resolved-domain context through the scale seam (#45, Task 5a)
- composite render core — layout + scene passes (#45, passes 2+3)
- PyO3 composite entries + WASM baked-geometry single source of truth (#45, Task 5c)
- route HConcat/VConcat through the Rust composite render path (#45, Task 6)
- ConcatChart wrap grids through the Rust composite path — compare= rides automatically (#45, Task 7)
- per-leaf binding inputs + themed per-child panel labels (#45, Task 5d)
- residuals compare= shares axes position-wise — the #45 headline
- grid/wrap hole children on the composite wire (#45, Task 8a)
- JointChart + ClusterMapChart through the Rust composite path as ratio grids (#45, Task 8b)
- RepeatChart + LayerChart through the Rust composite path — all forms unified (#45, Task 9)
- color/size channels in the composite resolve pass (#45)
- Python composite-path gate drops ahead of legacy deletion (#45)
- root chrome config + sized linear holes on the composite wire (#45)
- delete the Python legacy composition paths (#45)
- compose_svg_* no longer exist (#45)
Fixed¶
- clear ValueError for leverage-only charts on no-hat-matrix models (#44)
- per-class cumulative walk + facet for shap_waterfall per_class=True (#46)
- chart-level explicit x/y scales survive composite-mark desugar (#45)
- sanitize zero/non-finite log-domain endpoints at construction (#49)
- split render passes at scissor boundaries — wgpu 29.0.3 workaround: interactive scenes with 3+ mark-bearing panels drew only one panel's marks (#51 tracks upstream)
- full 72h-review findings burn-down — every logged item resolved; interactive renders now emit RenderWarnings like static output (#50)
Changed¶
- share_scale unified onto resolve= — one sharing mechanism (#45 close)
- collapse whole-change gate findings (#45)
Other¶
- per-class waterfall golden + SHAP compare= shared-x hardening (#46)
- remediation spec + plan for issues #44/#45/#46; Phase B spec, plan, and sub-decision records
- Phase B close — composite rendering documented, W4/W5 retired
- track Phase A design-review S2 deferrals
- 72h full-span review close — exclusion semantics documented, findings logged
- ruff-format the wrap_svg_with_chrome stub
0.18.2¶
2026-06-27
Added¶
- render compare= small multiples for 4 clustering charts; refine 2 sweep-chart rejections (#35)
- render compare= small multiples for regression charts + fix pooled-residual band (#35)
- render compare= small multiples for 4 model-selection charts (#35)
- render compare= small multiples for 6 explanation charts (#35)
- add
_compose_comparehelper for multi-model small multiples (#35) - add Quantile/Threshold ScaleSpec wire variants (SPEC-04, #38)
Fixed¶
- pdp compare= must use independent per-feature x, not shared (#35)
- order-preserving ordinal scale sharing (#35)
- positional Quantile/Threshold use data extent, not domain-as-extent (SPEC-04)
- single-source
_scale_to_dictvia Rust delegation; fix Quantile/Threshold encode (SPEC-04)
Changed¶
- de-duplicate compare= gate kwargs + public ComparedModelSource accessor (#35)
- single-source the scale wire form via Rust
to_scale_spec(SPEC-04)
Other¶
- ferrum-spec compare= note + representative compose goldens (#35)
- align ComparedModelSource import order in explanation.py (#35)
- design spec + plan for compare= aggregate rendering (#35)
0.18.1¶
2026-06-25
Added¶
- None
Fixed¶
- Unify cmap-vocabulary holdouts on the canonical
scheme=keyword. (#32) - Offset inset
<svg>and data-anchored<image>raw nodes in composed interactive renders. (#34)
0.18.0¶
2026-06-23
This release lands the cohesion campaign: a 20-agent audit of the whole
codebase surfaced 193 findings (sibling drift, duplicated logic, silent-failure
seams, naming drift, dead code), and every one is now addressed across the Python
declaration layer and the Rust compute/render engine. The refactors are
overwhelmingly byte-identical — the full SVG/PNG golden suite is unchanged — so
the bulk of the work is invisible at the output level. The user-visible changes
below are correctness and no-silent-failure improvements, API-vocabulary
unification (old spellings keep working as deprecated aliases), and one breaking
module-path change (ferrum._diagnostics → ferrum.diagnostics).
Added¶
compare=andrandom_stateare now uniform across the model-diagnostic figure families.roc_chart,pr_chart,prediction_error_chart,residuals_chart, and their siblings acceptcompare={"name": model, ...}for multi-model overlays and arandom_state=for reproducible resampling, where before only one module exposed them. The 17 single-model-aggregate paths that cannot overlay raise a documentedValueErrorinstead of silently ignoringcompare=. (PLOT-01, XSIB-08)
Fixed¶
-
Degenerate hand-authored
BinJSON now errors instead of silently coercing (behavior change). AChartSpec.from_jsoncarrying a hand-built bin spec withbin_count: 0or a non-finite / non-positivebin_widthpreviously fell back to a self-inconsistent Sturges default; it now raises. Unreachable through theBin/transform_binconstructors (which already validate) — only hand-authored JSON is affected. (XFORM-04) -
A mistyped data-transform key now raises instead of being silently dropped (behavior change). The
transform_*family (transform_bin,transform_aggregate,transform_window, ...) serializes to a dict that crosses into the Rust engine. Previously an unknown key on that dict — e.g.transform_bin("x", maxbin=3)with themaxbinstypo, or a hand-built{"type": "data_bin", "field": "x", "maxbin": 3}— was dropped without warning, so the transform silently ran with defaults. Each per-transform spec now carries#[serde(deny_unknown_fields)], matching the strictness the theme and per-channel paths already enforce. An unrecognized key now raises aValueErrorthat names the bad field and lists the valid ones (e.g.unknown field `maxbin`, expected one of `field`, `as_`, `maxbins`, `step`, `nice`, `name`, `extent`). Valid transforms are unchanged and render byte-identically. (SEAM-04) - A mistyped encoding-channel or top-level chart key now raises instead of being silently dropped (behavior change). Completing the no-silent-drop seam,
EncodingSpecandChartSpecnow carry#[serde(deny_unknown_fields)]. A hand-authored spec with a typo'd channel key (e.g.{"field": "a", "typ": "Q"}instead of"type") or a typo'd top-level key (e.g.{"marrk": "point", ...}instead of"mark") fed toChartSpec.from_jsonnow raises aValueErrornaming the unknown field, rather than dropping it and rendering with the value silently missing. Only reachable via hand-authored JSON — ferrum's ownto_json/to_specnever emits an unknown key, so every valid chart round-trips byte-identically. The one documented exception is ascalesub-dict:ScaleSpecis an internally-tagged enum whose variants flattenContinuousScaleCommon, and serde cannot enforcedeny_unknown_fieldsthrough a flattened/internally-tagged shape, so a typo'd scale key (e.g.clammp) is still tolerated and dropped. This structural constraint is documented on theScaleSpecdoc comment. (SEAM-04) Bin2D(2-D histogram binning) now errors on a reversed or degenerate explicit extent instead of silently dropping every row (behavior change). A reversedextent_x=(hi, lo)(orextent_y) made the in-cell row filter exclude every in-range value, sojointplot(kind="hist")and other 2-D histograms produced an empty grid with no error or warning.Bin2Dnow validates each explicit extent (lo < hi, both finite) at both construction and apply, raising aValueErrorthat names the offending axis — exactly as the 1-DBinalready did. Fixes a pre-existing sibling-drift between the 1-D and 2-D binners. Valid extents are unchanged and render byte-identically.
Changed¶
- Render-warning text is now a stable Display contract instead of the Rust enum's Debug shape (behavior change). Warnings emitted during rendering (palette overflow, out-of-domain rows, empty/collapsed panels, dropped facet panels, ignored sort specs, color-range parse failures, elided tick labels, overflowed legends) cross into Python via
warnings.warn. Previously the message text was the RustRenderWarning/LayoutWarningDebug representation (e.g.SortSpecIgnored { reason: "missing field" }), which leaked the internal variant/field shape and was not a stable contract — any field rename silently changed the string. Each variant now has an intentionalDisplaymessage (e.g.sort spec could not be applied (missing field); categories fall back to insertion order), so the user-facing warning text is a deliberate, stable sentence. Code that string-matches on warning messages should match on the new wording. SVG/PNG output is unaffected — warnings are not part of the rendered document. (SEAM-07) - The unused typed
Data*transform classes were removed from the Rust extension (internal). Every Phase-12 data transform existed twice across the Python/Rust seam: the public dict-emittingtransform_*functions (the only path inferrum.__all__) and a parallel set of typed PyO3 classes (DataAggregate,DataBin,DataCalculate,DataFilter,DataFold,DataPivot,DataStack,DataWindow) that were registered intoferrum._coreand declared in the type stub but never imported, exported, or constructed anywhere. The dead typed classes are gone, leaving one transform-construction API (thetransform_*functions). Thetransform_*public surface and behavior are unchanged. (SEAM-02) - Diagnostic visualizer
score()now delegates to the wrapped estimator (behavior change). TheFerrumVisualizerbasescore(X, y)previously returned a meaningless0.0stub for every visualizer that did not hand-override it. It now returnsfloat(self.model.score(X, y))whenever the wrapped model exposes a.scoremethod, and keeps the0.0fallback only for genuinely no-model visualizers (rank / parallel-coordinates / class-balance / elbow, all constructed withmodel=None). This means model-backed visualizers that previously inherited the stub —PRVisualizer,ConfusionMatrixVisualizer,ClassificationReportVisualizer,ClassPredictionErrorVisualizer,DiscriminationThresholdVisualizer,CalibrationVisualizer,CooksDistanceVisualizer,FeatureImportancesVisualizer,PCAVarianceVisualizer,InterclusterDistanceVisualizer,SilhouetteVisualizer,ManifoldVisualizer, the SHAP visualizers, and the deprecatedSHAPVisualizer— now report the estimator's own metric instead of0.0.ROCVisualizerkeeps itsroc_auc_scoreoverride; the four model-selection visualizers and the two regression visualizers shed their identical copy-pasted overrides and inherit the base. Thehas_scoreclass flag is replaced by a derived read-only property:viz.has_scoreisTrueexactly whenscore()returns a real metric (i.e. the wrapped model exposes.score), so the flag can no longer drift from the method. Two derivation gaps in that property are now closed so it holds for the non-standard subclass shapes too: (1)ROCVisualizer.has_scoremirrors its ownscore()condition (a model withpredict_probabut no.score— a valid sklearn shape — now reportshas_score=Trueandscore()returns the AUC, where before the inherited flag saidFalse); and (2) a multi-modelCalibrationVisualizeroverlay (two or more positional models, or a single dict-of-models like{"a": m_a, "b": m_b}) now reportshas_score=Falseandscore()returns the documented0.0no-single-score fallback, instead of silently scoring only the first model (positional) or returning the stub (dict). Single-model calibration is unchanged. No SVG output changes —score()andhas_scoreare not part of rendering. annotate_textanchor/align vocabulary reconciled (additive, non-breaking).annotate_textnow accepts the canonicalanchor=keyword in the SVG vocabulary ("start"/"middle"/"end"), matching [annotation.text][]. The formeralign=keyword ("left"/"center"/"right") keeps working as a deprecated alias, mapped via{left: start, center: middle, right: end}. With neither supplied, the anchor defaults to"middle"(identical render to the oldalign="center"default). Supplying bothanchor=andalign=raisesValueError. Internally, the coordinate-coercion logic that was duplicated acrossannotations.pyandannotation/primitives.pyis consolidated into one home (annotation/coords.py), and eachannotate_*now captures user-supplied style once and derives both the mark and the annotation primitive from it so they cannot drift. Render output is byte-identical (verified against the annotation golden suite).- Dodge position adjustment now accepts non-string grouping columns and signals an unresolvable grouping channel (behavior change).
Dodgeresolves its grouping channel (theby=field, else thecolorencoding) through the same category-coercion the rest of the renderer uses, so an integer, float, or boolean grouping column now dodges correctly. Previously only string columns worked; a non-stringby/color column raised an error. The two contradictory failure policies are unified: a grouping channel that cannot yield categories — a missing/typo'd named column, or an un-categorizable dtype such as a timestamp — now emits one warning (dodge could not be applied (...); marks were not offset) and leaves the marks un-offset, instead of either hard-crashing (non-string) or silently producing an un-dodged plot (missing column). The one remaining silent no-op is a dodge requested with no grouping channel at all (nobyand no color), which has nothing to group by. Existing string-column charts render byte-identically. (RSUP-05) - Breaking (defining-module path only): the model-diagnostics implementation package was renamed from the private
ferrum._diagnosticsto the publicferrum.diagnostics. The public import surface is unchanged —from ferrum import ROCVisualizer,import ferrum; ferrum.ModelSource, and every otherferrum.<Name>spelling work exactly as before. What changes is the defining module path: each diagnostic class's__module__(and any direct submodule import such asfrom ferrum._diagnostics.source import ModelSource) now readsferrum.diagnostics.*instead offerrum._diagnostics.*. Code that imported a diagnostic class from the canonicalferrumnamespace is unaffected; only code reaching into the privateferrum._diagnostics.*path needs to update toferrum.diagnostics.*. Heavy sklearn-boundary internals moved underferrum.diagnostics._internal, thevisualizers/submodules were underscore-prefixed to matchsources/, and the visualizer surface is otherwise identical. - The deprecated dispatcher shims
shap_chartandrank_chartare no longer in__all__(advertised-surface reduction, non-breaking for direct imports). Both have long been deprecated dispatchers that warn and forward:shap_chart(kind=...)toshap_beeswarm_chart/shap_bar_chart/shap_waterfall_chart, andrank_chart(rank=...)torank1d_chart/rank2d_chart. They are dropped fromferrum.__all__andferrum.plots.__all__so the canonical split functions are the only advertised surface (from ferrum.plots import *and the API docs no longer list the two shims). The shims remain fully importable (from ferrum import shap_chart, rank_chart) and still warn-and-forward unchanged; their removal target is the next major release. The duplicated warn idiom shared by both shims was factored into one internal helper, leaving render output byte-identical. (PLOT-09) - Color-set vocabulary unified on
scheme=, validated at construction (behavior change).scheme=is the canonical color-palette keyword onColor/Fill/Stroke(withcmap,continuous_palette,sequential, anddivergingas deprecated aliases), and a bogus palette name now raises at construction instead of at render time. The Rust palette registry is the single source of truth:color.palette()/sequential()/diverging()return the true rendered colors for the colorous-backed palettes (viridis,plasma,magma,inferno,cividis,blues,rdbu) instead of hand-picked approximations. (ENC-06, XNAME-02, XSIB-07, ENC-11) color.to_hexauto-detects byte vs. unit by value range and warns on an ambiguous overshoot (behavior change). A tuple with a component> 1is read as byte ([0, 255]), so(1, 0, 0)→#ff0000; the previous type-based heuristic is gone. A unit color that overshoots1.0from float color math (e.g.(0.9, 0.9, 1.1)) is still read as byte but now emits aUserWarningpointing atscale="unit"/"byte"to disambiguate, instead of silently producing a near-black color. Passscale=explicitly to suppress. (ENC-05)apply_stack(stacking) now accepts non-string grouping columns and warns on an unresolvable channel — matchingDodge(behavior change). An integer, float, or booleanby/colorgrouping column now stacks correctly (was silently un-stacked), and a missing or un-categorizable grouping channel emits one warning and leaves marks un-stacked instead of silently no-op'ing. Existing string-column charts render byte-identically. (RSUP-05)format_typeis the canonical number/date format keyword on every channel.formatTypeis honored as an alias on positional channels, fixing an asymmetry where text channels droppedformat_typeand positional channels droppedformatType. (ENC-03)mark_textnow emits valid SVG forbaseline="top","bottom", and"alphabetic"(behavior change). The three text-baseline parsers were unified; those spellings previously produced an invaliddominant-baselineattribute, which adjusts the vertical placement of text marks that used them. (RSUP-04)- Annotations honor per-annotation z-ordering (draw above or below the marks layer), and the dead
curveflag on arrow annotations was removed. (XDEAD-03) - Precomputed 1-D binary gain/lift curves now rank the negative class by
1 − p, consistent with the precomputed roc/pr path. (DIAG-01) - Interactive (WASM) click-selection uses typed field comparison, so a numeric selection co-selects
42and42.0, consistent with conditional highlighting. Browser-only; no static-output change. (WASM-04) - numpy-array figure inputs name columns
col_0,col_1, … (the ferrum-wide convention) instead off0,f1, …. (PLOT-03)
Deprecated¶
min_extent=/max_extent=→min_band=/max_band=onAxis,AxisConfig, andconfigure_axis(axis-band sizing). The old names warn and forward; "extent" is reserved for data-domain bounds. (XNAME-01)extent=→method=(errorbar / errorband) andwhisker_mult=(boxplot). The overloadedextent=keyword is split by mark; old usage warns and forwards. (XNAME-01)align=→anchor=onannotate_text,cmap=/continuous_palette=→scheme=, andshap_chart/rank_chartdropped from__all__— see the corresponding entries above. All keep working as before.
0.17.1¶
2026-06-20
Closes the remaining known-gap and bug issues from the v0.17.0 review and lands a large internal cohesion pass (full Python + Rust review → 13 findings, all behavior-preserving). The user-visible changes are a handful of default-behavior and channel fixes; the bulk of the release is internal refactoring that leaves render output byte-identical (verified against the golden suite). No breaking API changes.
Added¶
silhouette_chartandpca_scree_chartgained an opt-insubtitle=parameter (defaultNone, fully backward-compatible), matching the classification/regression chart family.EncodingSpec.conditionis now a readable attribute (previously write-only at construction).
Fixed¶
facet(col=X)without an explicitncolsnow lays panels side-by-side (a single horizontal row) instead of stacking them vertically, matching Altair/seaborn.facet(row=X), the genericfacet(field=X)wrap, and any explicitncols=are unchanged. (#24)mark_linenow honors thefill_opacityencoding channel (previously silently dropped). (#5)- The
shapeencoding now honorssort(alphabetical, data-aware"x"/"-x"/"y"/"-y", sort-field object, and explicit array). (#26) - A conditional-only color encoding (base
colorunset + awhen(Color(...))selection) now builds a categorical legend, so abind="legend"toggle has entries to toggle. (#9) - Interactive data-label z-order no longer flips on the first zoom/pan tick — labels keep their paint order relative to annotations/axes (the placement now uses a DOM-order-preserving update). (#10)
- Setting both
color=andstroke=now emits a one-time warning thatstrokeis ignored (previously dropped silently).
Changed¶
- Large internal cohesion refactor across the Python and Rust layers, all behavior-preserving (byte-identical output): a shared opacity resolver across the five core marks; one serde→Python getter helper and one appearance-channel honored-kwargs contract;
chart.pyfacet machinery extracted to_facet.pywith a type-safe_Facet;prepare.rssplit intoprepare/{mod,legend,extent}; shared figure-family annotation/facet helpers; and the symmetric concat composites deduped onto a parameterized_CompositeBase. No public API or render-output change.
Known gaps¶
ShapeKind::Squareglyphs can exceed the panel clip in facets (#25, investigated as not-reproducible/cosmetic); completing thechart.pydecomposition needs_NamedTransformco-relocation (#28).
0.17.0¶
2026-06-20
This release lands the archaeology #6/#7/#8 remediation to convergence (a multi-round review→remediate loop that ended with a 5-agent sweep finding zero in-class defects) plus two heavyweight-review cohesion refactors. The headline behavior change: faceted charts now share scales correctly across every data-driven channel, composite figure titles render, and the interactive (WASM) packed-instance path's metadata/positioning bugs are fixed. The work is predominantly behavior fixes; the new public surface is internal PyO3/transform plumbing. All output is byte-verified against the golden suite (5774 tests).
Added¶
MarkNodesnode+index accumulator with a 5-channel alignment guard (tooltips, hrefs, descriptions, data_indices, keys), so every mark builder emits metadata aligned to its source rows.ViolinSpecextent fields and a per-transformglobal_extentso faceted density/violin panels can pin a shared value-axis extent.figure_title_nodesPyO3 helper backing interactive composite figure titles.
Fixed¶
- Faceted shared scales. Faceted marks now match the global axis/legend across panels for every data-driven channel — positional x/y (raw fields under
resolve="shared"), categorical data-aware sort, continuous and categorical color, size, opacity, and shape. Previously each panel resolved its own domain, so a mark could render with the wrong position, color, glyph, or normalization relative to the shared legend. - Faceted transform extents.
Kde/Bin/Violin/Kde2D/Bin2D/DensityDataand the extent-derivingHex/Raster/DataBintransforms now pin a shared value-axis extent across panels when one is not given explicitly (previously KDE-only). - Composite figure titles (
title/subtitle/caption) render in both SVG and interactive output across all composite families;LayerCharttitles reach the document<title>; packed GPU marks are offset under the title band. - Interactive (WASM) packed path. Packed instances are offset by the per-panel
(dx, dy)composition translation and the figure-title band; the tooltip string table is parsed field-by-field; conditional/crossfilter instances index from the packed-first base; andscene_loadhardens its tooltip-scan and instance-count handling against malformed buffers. - Mark metadata alignment (
bar/rect/point/segment/text/tick/rule/group/geoshape/image): tooltips, hrefs, descriptions, data_indices, and keys now align to the true source row when rows are skipped or reordered. _core.pyistub parity. CorrectedEncodingSpec/TimeScale/hat_matrix_statssignature drift and added a programmatic live-vs-stub signature-parity test so the class cannot silently recur.
Changed¶
- Cohesion refactors (behavior-preserving, byte-identical): collapsed the duplicated packed/scene merge tail into a
_PlacedChildrecord +_assemble_placed_children; extractedbuild_auxiliary_scalesto dedup the triplicated scale dispatch; dedupedshare_scalemode validation; consolidated figure-chrome handling into_CompositeBase; single-sourced bin extent/nice logic. - Packed GPU wire-format is now enforced: named stride/offset consts + a producer stride test (ferrum-core) and compile-time
size_of/offset_ofassertions (ferrum-wasm), so any future layout drift fails the build instead of silently corrupting the interactive render.
Packaging¶
- Broader wheel matrix: manylinux2014 + aarch64 + musllinux + Intel macOS, with macOS built as universal2 on Apple Silicon.
Known gaps¶
- Four pre-existing, out-of-scope gaps surfaced during the review were filed as issues rather than fixed here: #24 (
facet(col=)defaults to a single column), #25 (square-shape glyphs can exceed the panel clip in facets), #26 (shape encoding ignoressort), #27 (PyO3 stub fidelity nits).
0.16.2¶
2026-06-15
A focused patch fixing figure-level title/caption positioning on concatenated charts and single-chart captions (#1). No new public API.
Fixed¶
- Figure-level title, subtitle, and caption on concatenated charts (
a | b,a & b, andconcat(...)) and single-chart captions no longer render flush against the left edge. They now default to a 16 px left inset matching the single-chart title, andconfigure_padding(left=…, right=…)andconfigure_title(anchor="start"|"middle"|"end")reposition them (the anchor governs title, subtitle, and caption together). Previously the chrome was pinned tox=0and both knobs were silently ignored at the figure level.
0.16.1¶
2026-06-15
This release makes several documented-but-broken features actually render. No new public API was added; methods and parameters that previously stored their values without effect now take effect, and silently-dropped inputs now fail loud.
Added¶
Chart.override(**kwargs)now applies at render. It is a fail-loud escape hatch that injects presentation-spec values (per-axis/legend config, per-channel scales, mark style, coord,width/height) and wins the cascade overconfigure_*/theme. Previously the overrides were stored but never read. Unknown or misspelled paths now raiseFerrumOverrideErrorwith a closest-match suggestion.- Per-channel axis and legend styling now renders. Every documented field on
fm.Axisandfm.Legend— label/grid/domain/title colors and sizes,orient,translate,min_extent/max_extent,tick_extra/tick_min_step,grid_opacity,title_orient,zindex,label_flush,label_overlap; legendsymbol_size/symbol_stroke_width,label_color,label_limit,clip_height,row_padding/column_padding,padding/title_padding,offset— now takes effect when set on an encoding, matchingconfigure_axis/configure_legend. Previously most of these silently dropped. A misspelled per-channel key now raises. configure_axis(...)andconfigure_legend(...)gained the same orphan styling fields, so they can be set chart-wide too.
Fixed¶
- Rotated x-axis tick labels are now end-anchored (were center-anchored and overlapped the plot) with an angle-aware gap, and the x-axis title clears them.
configure(axis_x=…)per-axis styling is no longer clobbered by a generalconfigure(axis=…); a per-axis/legendlabel_font_sizenow sizes the reserved layout (not just the drawn text);fm.Legend(label_color=…)applies to continuous colorbars;configure_title(subtitle_font_size=…, subtitle_color=…)styling is honored.clustermapaccepts the documented integerz_score/standard_scalevalues (0/1); they previously raisedTypeError.
Changed¶
- Per-channel axis/legend options are now typed structs with
deny_unknown_fields(replacing an opaque pass-through map), so typos fail at render instead of silently dropping. Internal: axis style overrides were unified into one struct and theorientprecedence moved to anOptionsentinel.
Deprecated¶
AxisConfig.x/configure_axis(x=…, y=…)are deprecated and emit aDeprecationWarning— they never had any effect. UseChart.axis(x=False)/Chart.axis(y=False)to show or hide an axis.
0.16.0¶
2026-06-04
Added¶
Chart.to_html()returns the self-contained interactive HTML page as a string, byte-identical to whatsave("out.html")writes. It accepts the sameembed_wasm=,toolbar=, andraster=keywords as the HTML save path. This completes theto_*converter family (to_svg,to_png,to_html).
Changed¶
- Renamed the output converters
Chart.show_svg()→Chart.to_svg()andChart.show_png()→Chart.to_png(), establishing a clear convention across the export surface:to_*returns an in-memory value,save(path)writes to disk, andshow()displays. The oldshow_svg/show_pngnames remain as deprecated aliases that emit aDeprecationWarningand will be removed after 0.16.0.
Fixed¶
- Statistical transforms now accept integer columns.
mark_density(1-D and 2-D KDE),mark_qq,mark_hex, and 2-D binning previously raisedcolumn '<x>' must be Float64on integer data (counts, ages, years, ranks); they now coerce numeric columns to floating point. Genuinely non-numeric columns still raise a clear error. jointplot(kind="hist")now renders a 2-D histogram instead of raisingunknown column 'bin_x_start'. The center panel is encoded against the correctBin2Doutput columns (x_lo/x_hi/y_lo/y_hi/count) so the bins tile the plane instead of collapsing.- Removed two panic-prone internal downcasts in the 2-D binning transform; bad input now returns a normal error rather than risking a panic.
0.15.3¶
2026-06-03
Fixed¶
- Interactive (WASM) reactive domain-rescale (focus+context brushing) no longer shears sibling panels or makes the overview line disappear during the brush. Each panel's marks now render with their own transform, so rescaling one panel leaves the others untouched.
- Interactive box-zoom (magnifying-glass tool) on a focus+context overview now rescales the detail panel instead of making it vanish. Wheel, pan, and box-zoom operate on the focus panel; a box-zoom drawn on the overview drives the detail's domain like a brush.
- Interactive axis lines and stroked marks are antialiased via 4× MSAA on the render pass, removing the occasional 1px axis-line seam/gap where ticks cross the baseline or adjacent facet panels meet. Silently falls back to the previous (non-MSAA) path on GPUs/browsers without 4× support — no regression there.
0.15.2¶
2026-06-03
Fixed¶
- Interactive (WASM) line and area stroke width is now constant under reactive domain-rescale — the "ribbon"/variable-width artifact when a focus+context brush rescaled an axis non-uniformly is gone. Stroke width is applied in screen space and is invariant to the zoom/rescale transform. As part of this, interactive line joins are now beveled (the static SVG renderer is unchanged and keeps miter joins).
Known limitations¶
- A few interactive-renderer issues remain tracked for a follow-up pass: the reactive-rescale brush-mode default, sibling panels shearing during a cross-panel rescale, and occasional axis-line segment breaks. These do not affect the static SVG renderer.
0.15.1¶
2026-06-03
A post-v0.15.0 audit (bug-hunters, seam auditors, and heavyweight cohesion reviews) found a cluster of incomplete-unification, sibling-drift, and silent-failure bugs in the flexibility-campaign surface. All are fixed here, each with a regression test.
Fixed¶
- Finished the group-by-key unification:
transform_window,data_stack,stat_aggregate's join/pivot/aggregate paths now accept integer/uint/bool groupby columns (they previously collapsed every row into one group). A null group key now stays distinct from a real0/false/empty (FA-9), which also fixes a crash insummary/boxplot/violin/errorbandwhen a groupby column contained a null - Cross-panel reactive rescale (focus+context brushing) now zooms the detail panel in-bounds — the rescale is reprojected through the shared data domain instead of the source panel's pixels, which previously sent the detail marks off-screen
- Polar bars, ranged rects, and arc marks now honor the per-row
opacity/stroke_width/stroke_opacity/stroke_dash/fill_opacity/angle/tooltip/href/descriptionchannels their sibling marks already supported Axis(title=None)andLegend(title=None)truly suppress the title (no phantom text node), matching the channel-levelfm.X(title=None)add_params/add_selectionraise a clearTypeErroron wrong-typed arguments, and a selection colliding with a same-named parameter raises instead of silently shadowing it- A non-finite (Inf/NaN) value in an
fm.paramdomain raises a legible error naming the parameter; abind="legend"selection registered viaadd_paramsis now wired correctly; theChartSpectype stub covers all constructor arguments mark_areawith anx2channel, andmark_barwith bothx2andy2, now raise a clear error pointing tomark_rectinstead of silently dropping the second extent
Known limitations¶
- A single-panel reactive-rescale chart may still default to pan mode; click the box-select tool to brush (FA-17). The line "ribbon" appearance under a non-uniform rescale (FA-16) is tracked separately.
0.15.0¶
2026-06-02
Added¶
- Reactive parameters:
fm.param,fm.when, and unifiedselection_interval/selection_point, withbind="legend"toggles. Parameters drivescale.domain,transform_filter, and conditional encodings; they statically resolve to their initial value for SVG export and power a live WASM/JS runtime in interactive HTML (domain rescale, crossfilter, legend toggling) - Polar
theta2/radius2second extents with radial stacking, enabling annular wedges, coxcombs, and sunburst-style charts - Figure-level
title/subtitle/captionon composite charts via.properties(), rendered once around the composite rather than per panel - Typed continuous scales (
LinearScale,LogScale, etc.) auto-infer their domain from the data, matching the dict form resolve=onvconcat/hconcat;pairplotshares a single color domain across panels- 2-D density (
kde_2d/mark_contour) splits by categorical hue, drawing one contour set per group
Changed¶
- Breaking:
transform_window(..., frame=(preceding, following))now follows the documented Vega/Altair convention, where a negativeprecedingcounts rows before the current row. A trailing window isframe=(-k, 0)(thekpreceding rows through the current row). The sign was previously inverted, so trailing rolling aggregates silently produced all-null or forward-looking results. Pipelines that compensated for the inverted sign must drop the workaround.
Fixed¶
- Continuous color scales bound through
SequentialScale/DivergingScalenow honor the named scheme,domain, andclamp(every scheme rendered blue before); addedreds/greens/oranges/purples; diverging midpoint placed via piecewise normalization mark_bar/mark_areahonor a second positional extent (y2/x2) for candlestick, floating, and diverging bars;mark_bar(zero=False)opts out of the zero-anchored y-domain- Integer and nominal columns render on categorical channels (integer-keyed heatmaps, nominal bar
y) and stack correctly; integer storage still defaults to quantitative - Annotation span
label_position(top/middle/bottom) is honored; unsupportedstack=on non-stackable marks warns instead of silently dropping marks; empty facet partitions name the dropped key in the warning - Two-way faceting (
.facet(row=, col=)) renders a true grid with per-partition transforms, layered marks, and independent/shared scales — the row dimension was previously dropped - Silent failures across the render pipeline now surface as warnings or errors instead of producing blank or wrong output
mark_linedetail=groups by non-Utf8 columns; axis titles use the source field name rather than the internal transform columnmark_violinandmark_areahonor color/hue instead of collapsing groups; per-layeraggregate=andbin=are no longer dropped on layered charts;transform_top_kaggregates integer columns instead of counting rowsfm.whennumeric conditionals apply instead of silently no-op'ing; radial bars stack outward andstack=is normalized acrossx/y/theta/radiusmark_arcwith nominal theta renders a Nightingale coxcomb; polar bars render equal full-circle angular bands;stat_aggregateand all stat transforms accept integer/uint/bool groupby keys; ordinal-color area legend swatches match fills; box-inner layers color-encode by huetitle=NoneandAxis(title="")truly suppress axis titles; annotations anchor to categorical/ordinal axes- errorbar/errorband compute per-hue extents instead of pooling across groups; unsupported mark shapes and stack offsets raise instead of silently defaulting
- Zoomed lines and areas stay clipped within their panel in interactive exports; two-way facet row-strip labels render on the right edge
Other¶
- Expanded the docs-site Showcase with composed charts unlocked by the flexibility work; flattened the Gallery/Showcase navigation
0.14.0¶
2026-05-31
Added¶
catplot(height=, aspect=)for per-panel facet sizing, matchingdisplot- Automatic temporal scale inference from
Datetime/Datedtypes (no explicit:Tneeded); microsecond/nanosecond timestamps normalized to milliseconds - Size and shape legends, with multi-legend stacking and same-field legend merging
Fixed¶
- Float ordinal domains, displot facet width, and boxen sort on pandas/pyarrow inputs
- Explicit constant stroke now beats an inherited color encoding on rule/segment marks
- 3- and 4-digit hex colors,
~e/~sscientific-notation trimming, ranged-mark per-row color, and raster Y-axis orientation - Deterministic batch selection in
locate_fieldfor named transform outputs - Integer/float ordinal columns render correctly; per-panel facet sizing on
displot - Channel-level
axis=Nonehides the axis - Date/datetime/ISO coordinates accepted in annotations
- Color routes to stroke on line-family marks
- Value-sort and the full sort spec honored on axes and composite marks
- Order-independent color-scale merge on layered charts
- Per-channel axis
label_formatwith the full d3-format grammar and chrono time formatting - Categorical color-string ranges; rect/heatmap scheme routing
Changed¶
- Boxen sort moved into the Rust
LetterValuetransform (newsort=kwarg); Python shim removed - Typed ordinal
scale.rangewire format - Unified categorical-axis sort resolution; removed the dead errorbar
y_sort - New
ChannelBase.option()accessor; dropped private_kwargsreach-ins - Deduplicated inferred-type application; reconstruct the promoted color channel on layer merge
- Shared fill/stroke color-resolution helpers across marks
- Colorbar tick formatting routes through the full d3-format grammar
- Extracted
build_default_categorical_scale
Other¶
- Fixed docstring parameter drift across the public API; added a docstring-drift auditor (
scripts/audit_docstring_drift.py) - Added a capabilities showcase docs page for power-user chart designs
- Regenerated configure goldens for corrected 3-digit hex colors
0.13.0¶
2026-05-30
Added¶
ferrum.Gridvalue class for theme-level gridline control: major/minor levels with per-level styling (major_color/minor_color,major_width/minor_width, dash, opacity) plus barecolor/width/dash/opacityshorthand that sets both levels- Minor gridlines on continuous axes (linear, log, time, pow, sqrt, symlog); log axes place minors at the 2–9 intra-decade multiples; categorical/discretizing axes have no minors
- Constant mark-style kwargs on composite/statistical marks —
mark_density(opacity=0.4),mark_smooth(stroke_width=2),mark_boxplot(fill=...), etc. now work like simple marks, applied to every emitted layer mark_hex(stroke=, stroke_width=)renders hex-cell borders- Native Rust diagnostic curve kernels (ROC, precision-recall, calibration, confusion matrix, threshold sweep); raw-array (
y_true=/y_pred=) diagnostics are now fully scikit-learn-free SceneNode::Rawrendering in the WASM interactive renderer (chrome-vs-data anchoring) and a dedicatedMarkBatchKind::Labelscene-graph kind
Fixed¶
- Continuous-axis gridlines and ticks now coincide with the data marks they label (previously used uniform-slot placement, causing visible misalignment on continuous scales)
- WASM colorbar gradient id collision when a colorbar chart was placed in an inset (outer and inset colorbars collapsed to one id)
- Diagnostic kernels reject null-containing Arrow inputs instead of silently mishandling them
- Degenerate single-class ROC matches scikit-learn's NaN convention
Changed¶
- Diagnostic chart paths (precomputed and model-backed) route through the shared Rust kernels; scikit-learn is now required only when a fitted model is passed
- Internal cohesion refactors (no API change): post-review cleanups in the scale-projection/grid code, consolidated diagnostic frame assembly into a shared
_curve_framesmodule, and unified precision/recall cores in the PR kernel
Other¶
- Documented
ferrum.Grid, minor gridlines, and composite mark-style kwargs across the guides and API reference; clarified that raw-array diagnostics need no scikit-learn; regenerated guide PNGs for the gridline-coincidence rendering
0.12.0¶
2026-05-24
Added¶
- Declarative configuration surface:
configure_axis,configure_legend,configure_title,configure_grid,configure_padding,configure_color, and unifiedconfigure()methods onChartand all composition types - Annotation rendering module with coordinate resolution (text, arrow, rect, line, span, bracket, callout, image)
- Structural feature rendering:
SecondaryY,BreakAxis,Insetwith full composition support - ChartConfig domain fields wired into render pipeline
label_paddingtheme key, per-side padding support
Fixed¶
- Break-axis x-label disappearance and y2 right-margin clipping
- Inset viewBox scaling and span fill_opacity
- Format-presets revenue chart uses nominal encoding for monthly bars
- Break-axis remaps same-axis ticks, SecondaryY bar marks with nominal x
- Inset recipe PNG referenced wrong image
- ColorConfigSpec.domain accepts string and float values
- Annotation text font-family rendering
- 10 bug-hunt R3 bugs (26 failing tests) and 21 bug-hunt bugs across coercion, composition, figures, interactive, scale, projection, render, and layout
- 31 bug-hunt bugs from configure field wiring
Changed¶
- Major internal refactoring (no API changes):
chart.pysplit from 5,779 to 2,794 lines viaStatisticalMarksMixin(15 methods) andDiagnosticMarksMixin(26 methods)configure_*methods unified intoConfigureMixin, eliminating ~635 lines of duplication betweenChartand_ChartLikeChart._cloneauto-generated from__slots__(prevents silent data loss)to_spec()decomposed into 3 focused helpers- Rust
ThemeInputsdecomposed from 42 flat fields into 9 sub-structs - Rust
PreparedInputslegend overrides grouped intoLegendPreparedOverridessub-struct - Rust
render_svg/render_scene_jsondeduplicated via sharedprepare_and_layoutpipeline (fixes missing secondary-Y padding in interactive renders) - Rust
scale_resolve.rs(2,205 lines) split into 6 sub-modules - Rust
ScaleSpeccommon fields factored intoContinuousScaleCommon - Rust
Encoding::inherit_*duplication eliminated - Added
cargo_testnox session with correct macOS DYLD paths
Other¶
- Cohesion/complexity audit report and refactor plan
- Docs: customization guide, 7 concept pages, 12 recipes, 16 golden SVGs
- Regression tests for break-axis labels, y2 right-margin, font-family, and auditor-found bugs
0.11.2¶
2026-05-23
Added¶
- Graduated axis label collision cascade — replaces flat→-45°→elide with wrap → font shrink → graduated rotate → tick cull → elide, keeping categorical labels legible without user intervention
- Multi-line label wrapping: snake_case, space, and camelCase labels split at natural boundaries instead of truncating
- Dynamic bottom margin: rotation-aware gutter estimation prevents rotated labels from clipping at the viewport boundary
- Theme-configurable
cull_thresholdfor tick label density reduction (Theme(cull_threshold=N))
Fixed¶
- Y-axis title duplicated across all facet columns — now suppressed on non-leftmost columns (mirrors existing x-axis bottom-row suppression)
- Panel annotations silently dropped from SVG output — now emitted after marks, matching WASM z-order
0.11.1¶
2026-05-22
Fixed¶
- PNG export: DPR-aware canvas with pHYs DPI metadata replaces the old DPR-upscale approach, fixing gridline artifacts in composed charts (HConcat) caused by stale pixel-snap positions after canvas resize
- PNG export: full Retina resolution via 2D offscreen canvas — wide charts clamped by GPU max texture size now export at correct @2x dimensions with proper DPI metadata
- Canvas initialization: safe three-phase init (CSS size → GPU create → DPR-clamped resize) prevents
Surface::configurecrash on wide HConcat charts exceeding GPU max texture size - Mouse coordinate mapping uses scene dimensions instead of canvas backing store, fixing hit-test and tooltip positioning on DPR-aware canvases
0.11.0¶
2026-05-22
Added¶
- R-tree spatial indexing (
rstarcrate) for O(log n) hit-testing on large point clouds - Interactive toolbar: Pan, Box Zoom, Box Select, Reset, Save PNG buttons (Bokeh-style)
Chart.interactive(toolbar=True/False)andChart.save(toolbar=True/False)kwargs- Auto-tooltips: interactive renders automatically inject tooltip fields from encoded channels
WasmRenderer.maxTextureSize()WASM export for adaptive DPR capture- Keyboard shortcuts for toolbar modes (P/Z/S/R/Escape)
Fixed¶
- Opacity semantics:
fill_opacityused correctly for packed batches (>1000 marks),stroke_opacityapplied in tessellated paths/polygons, no double-apply on strokes - Grid pixel-snap in WASM renderer eliminates sub-pixel aliasing
- Mark clip region: GPU scissor rect clips zoomed marks to panel plot area (DPR-aware)
- Tick label clipping: zoomed tick labels filtered by panel plot area
- Save PNG: adaptive DPR clamping to GPU max texture size (prevents crash on wide charts)
- Save PNG: ResizeObserver disconnected during capture (prevents race condition)
- Save PNG: SVG viewBox uses actual canvas dimensions (not stale scene dimensions)
- Annotation z-order: reference lines drawn above data marks (matching SVG renderer)
- Reset button forwards selection state to Jupyter kernel
- Cursor CSS targets SVG overlay in select/boxzoom modes
- HTML title XSS:
html.escape()applied to<title>tag - Hex color shorthand: 3-char (
#ccc) and 4-char (#abcd) correctly expanded - Malformed hex colors now emit a warning instead of silently returning black
_render_scene_jsoncollapsed into_render_scene(eliminated duplication)
Changed¶
SceneCollectoraccumulator replaces 8-parametercollect_nodes/emit_draw_commands- Uniform clip vec4 removed from shaders — GPU scissor rect handles clipping (32-byte uniforms)
text_json.rsextracted fromlib.rswith deduplicated text serialization helperslib.rssplit: tooltip formatting, conditional render, transform upload moved to focused modules- Partial GPU buffer update for conditional re-render (only re-uploads instance data)
- Dead packed-batch linear fallback removed from hit-test (spatial index covers it)
- Hand-rolled JSON replaced with
serde_jsonin hit-test and tooltip paths _auto_tooltipsremoved from publicChart.to_spec()signature_ChartLike.save()uses explicittoolbarparameter instead ofkwargs.popResizeObserverreads CSS layout size (not backing-store size)- Transition RAF loop cancels stale animations on rapid scene changes
0.10.0¶
2026-05-20
Added¶
.labs()fluent method for post-hoc axis labels and titles.xlim()/.ylim()convenience methods for axis limits.to_dict()on Chart (returns parsed JSON spec as a Python dict)mark_circle()/mark_square()convenience methods (aliases formark_point(shape=...))mark_line(point=True)overlays points on lines (altair parity)color=andalpha=mark kwarg aliases (maps tofillandopacity)linetype=mark kwarg alias with named values ("dashed","dotted","dashdot","longdash","solid")Axis(label_map={"a": "Group A"})categorical label remappingannotate_abline(slope, intercept)for slope+intercept reference lines- PNG
scale=parameter onshow_png()andsave()for DPI control - PDF export via
save("chart.pdf")(zero-dependency minimal PDF writer) reverse=on continuous positional scales
Correction (2026-09-04): this line was inaccurate —
reverse=was never actually implemented on any continuous positional scale (LinearScale,LogScale,PowScale,SqrtScale,SymlogScale,TimeScale) at this release, or for several releases after it. It shipped only in the batch documented in the Unreleased section above (2026-09-04).PointScale.reverse— a different, unrelated mechanism — shipped separately in 0.20.0 (#65). - 5 new aggregate functions:variance,stdev,q1,q3,distinct- 4 KDE kernels:epanechnikov,tophat,cosine(plus existinggaussian) - Smooth method aliases:"linear","quadratic","cubic","log","sqrt"-"|"/"-"(vline/hline) point shapes - 148 CSS named colors in theme overrides (e.g.Theme(mark_color="steelblue")) - Altair migration guide (docs/site/comparison/altair.md) - Pandas/polarsSeriesaccepted as data input - PolarsCategorical/Enumcolumns auto-cast to string - PolarsDurationcolumns auto-cast to int64 nanoseconds - PyArrowDate32/Date64columns auto-cast to timestamp - Composite mark kwargs forwarding (errorbar, boxplot, errorband, ribbon, boxen) - Mark tick rendering for ordinal-y-only and ordinal-x-only encodings
Fixed¶
type_="Q"kwarg on channel constructors was silently droppedcount():Qaggregate shorthand crashed (empty field rejected by Rust)- Aggregate shorthand
mean(val):Qmissing auto-groupby from sibling channels nice=Trueon Scale constructors silently dropped during serializationmark_smooth(method="linear")documented but crashed (Rust only accepted"lm")- Non-Int64 integer columns failed when encoded as nominal (pyarrow/pandas users)
- Config defaults (640x480) didn't match render defaults (was hardcoded 600x400)
- Shorthand parser rejected hyphens, dots, and spaces in column names
ChannelNameenum missingStrokeOpacity/FillOpacity/Anglevariants (conditional encodings on extended channels were broken)- WASM conditional resolver missing match arms for 3 extended channels
mark_density(kernel=...)never forwarded kernel to Kde transform_apply_label_mapsbroadexcept Exceptionnarrowed to specific types with warning
Other¶
- Plotnine/Altair migration gap audit (
design-docs/superpowers/audits/) - 226 new regression tests across 6 test files
- Overhaul README with hero strip, benchmarks, comparison table, and theme grid
- Embed interactive demos in docs
- Add plotnine to benchmarks, comparison table, and migration guides
- 10M-row stress tests for scale ceiling validation
0.9.1¶
2026-05-18
Added¶
- Auto-inject selection fields into tooltip for cross-panel linking
- D3 interaction layer, SVG text rendering, and cross-panel linked selection
- Interactive HTML export with interval selection, composition support, and adapter pattern
- Nox
docssession for docs site build verification
Fixed¶
- Resolve 13 scene-pipeline audit findings across all 4 stages
- Include tooltip field names in SVG output and escape Group attrs
- Wire
strip_text_sizeandstrip_paddingtheme keys end-to-end - Resolve 4 PyO3 binding audit findings (B1, B2, W1, W4)
- Bug-hunt across 5 interactive subsystems — 189 tests, 7 bugs fixed
- Resolve 9 wiring-audit findings in interactive HTML export (B1-B5, W1, W3, W6, W8)
- Deduplicate and harden interactive HTML export pipeline (Rust + Python)
- Eagerly populate
LAYER_NAME_CATALOGfrom all mark modules - Embed Inter font in shared CSS for Jupyter and HTML export
- sRGB-to-linear color conversion for correct GPU rendering
- Rebuild WASM artifacts with B4
startTransitionfix
Changed¶
- Rename audit skills/agents to prefix pattern (
audit-*,auditor-*) - Docs site: add classification meta tags, update author metadata, plain display names for API nav
0.9.0¶
2026-05-17
Added¶
- Phase 12: Spec completeness — full implementation of all remaining
ferrum-spec.mdfeatures - Data transforms API — 17 transform constructors (
FilterTransform,AggregateTransform,WindowTransform,BinTransform,CalculateTransform,FoldTransform,PivotTransform,StackTransform,FlattenTransform,SampleTransform,ImputeTransform,DensityTransform,RegressionTransform,LoessTransform,QuantileTransform,LookupTransform,TimeUnitTransform) with Rust-backed execution and expression evaluator - New scale types —
PowScale,BandScale,PointScale,SequentialScale,DivergingScale,QuantizeScale,BinOrdinalScale - Power/sqrt transform —
PowScale(exponent=0.5)for square-root position resolution AxisandLegendvalue classes — full configuration objects for axis and legend customizationferrum.colorandferrum.configmodules — color utilities and configuration APILayerChartandConcatChart— first-class composition types for programmatic multi-view construction- 9 infinity domain regression tests — continuous-x bar width, infinity filtering across mark types
- Docs: 4 recipe pages — transforms, ConcatChart, Axis/Legend, PowScale with rendered PNGs
- Docs: API reference pages — transforms, scales, color, config, axis, legend
- Docs: data transforms guide
Fixed¶
- Infinity domain filtering —
±infvalues no longer corrupt scale domain auto-computation - Continuous-x bar width — bars with continuous x-axis and no
x2now auto-compute width - Safe Rust downcasts — temporal type handling and Time bar rendering hardened
- Python type annotations and dead code — review-lite findings addressed across Python surface
Changed¶
- Design-docs reorganization —
design-docs/split intoarchitecture/andnarrative/subdirectories - Code archaeology updated — Phase 12 items marked resolved, deferred marks inventory refreshed
- Documentation expanded — Phase 12 pages, cross-reference links, missing docstrings added
0.8.3¶
Added¶
- pytest-xdist for parallel test execution (
-n auto) - 132 new tests from 5-round test-sweep campaign (scale, transform, composition, facet, theme, coord, encoding dimensions)
- Scale tests for SHAP, ICE, and PDP figure functions
Fixed¶
- Multi-layer scale domain union — layers now merge domains correctly instead of using only the first layer's range
- TickLevel infinity serde — tick-level values no longer panic on serialize/deserialize with infinity bounds
- Coord system × position adjustment interaction (dodge offsets under CoordFlip)
- Figure function × data shapes gap (sweep-1)
- Missing
packed_instancesfield in scale-stat test fixture - Stale
docs/superpowerspaths updated todesign-docs/superpowersin CLAUDE.md
Changed¶
- Test-sweep skill: parallel Rust test track, coding agent dispatch enforcement
0.8.2¶
Added¶
/test-sweepskill — iterative combinatorial test-and-fix campaignpython-coderandrust-codercoding agents for language-specific dispatch- Plotly added to scatter benchmark suite
- Social card generation script with iris lmplot
Fixed¶
- Per-instance channel rendering —
opacity,stroke_width,fill_opacity,size, andangleencoding channels now affect SVG output for all 9 primitive marks (previously onlymark_pointhad full wiring) - All-null data handling — charts with entirely null/NaN columns now render an empty chart gracefully instead of crashing with
ValueError - Histogram auto-groupby —
displot(hue=)andjointplot(hue=)no longer crash; the Bin transform now preserves the color-groupby column - RepeatPlaceholder guard —
pairplotmark overrides no longer crash when encodings contain unresolved repeat placeholders - Chained layer column-overlap —
mark_rulelayering with overlapping column names resolved - Scale constructors —
rangeparameter now optional on all scale constructors - License packaging — NOTICE file declared in
license-filesfor sdist inclusion
Changed¶
- Benchmark tables updated with Plotly results (4-library comparison)
- Documentation expanded: 25 new-user gaps addressed, API reflinks, stale gallery PNGs regenerated
0.8.1¶
Fixed¶
- Scale
rangenow optional —LinearScale,LogScale,SymlogScale,TimeScale, andOrdinalScaleno longer requirerange=in their constructors. The renderer auto-fills from the plot-area dimensions, so users can writefm.LogScale(domain=[100, 100000], base=10)without pixel math. mark_rulelayering with overlapping columns — layering a rule on a scatter (scatter + hline) no longer draws a line per scatter row when both DataFrames share a column name (e.g."y").- Chained
+layering —scatter + hline + vline + labelnow renders correctly. AddedIdentitytransform andinherit_non_positionalto prevent chart-level positional encoding from polluting routed layers. - Docs code examples — fixed
CoordFlipencoding order,stroke_dashstring→list,StackInt64→Float64,to_theme_inputs_dict()→to_spec_dict(),chart.render_config()→chart.properties(render_config=),feature_importances_chart→importance_chart,ferrum[...]→ferrum-viz[...].
Added¶
- 25 new documentation sections — type suffix explanation, position adjustments (Dodge/Stack/Jitter), axis customization (log scale, limits, reversed), smooth method table, legend control, palette cycling, shared scales, regplot, multi-model comparison, precomputed scores, output methods summary, DPI note, PDF note, interactive compatibility, CoordFlip recipe, annotation recipe, chart sizing recipe, category sorting recipe, time-series recipe.
- 13 guide PNGs — visuals for every new section (position adjustments, axis customization, legend suppression, shared scales, regplot, multi-model ROC, CoordFlip, annotations, sizing, category order, time-series).
- 12-theme visual grid — side-by-side comparison of all built-in themes on the same chart.
- Complete 54-mark table — all mark methods listed with reflinks in marks-encodings guide.
- Consistent API reflinks — every public symbol mentioned in prose now links to its API reference across all doc pages.
Identitytransform — Rust pass-through transform for named-output routing in layered compositions.- 11 regression tests — covering scale range, rule layering, and chained layer fixes.
- PyPI metadata — keywords, classifiers, and project URLs added to
pyproject.toml.
Changed¶
- README — updated install section with
ferrum-viz[all], added docs link, interactive rendering feature, corrected dev commands.
0.8.0¶
Grammar-of-graphics core with Rust rendering engine.
Added¶
- 12 built-in themes — Paper Ink (default), Slate Citrus, Arctic Signal, Observable, Minimal, Dark, Publication, Economist, FiveThirtyEight, Solarized Light, Solarized Dark, plus explicit
paper_inkfor derivation. - 3 original categorical palettes —
paper_ink,slate_citrus,arctic_signal(8 colors each). - 9 continuous color schemes —
cool_blue,warm_ochre,night_blue,electric_lime,signal_blue,ember_orange,blue_to_red,cyan_to_amber,blue_to_violet. fm.hconcat()/fm.vconcat()— top-level convenience functions for multi-chart concatenation.Chart.axis()— method for suppressing or restoring axis decorations.- Facet-before-transform — faceting now partitions data before statistical transforms run, so each panel gets its own transform subset.
- Grouped smooth —
mark_smoothsupports group-by; no explicit per-group layering needed. - Continuous colorbar — rendered alongside heatmaps and continuous-color charts.
- Full Theme key wiring — all
ferrum-spec.md§3.13 keys plumbed end-to-end from Python through Rust renderer. Unknown keys raiseValueErrorat construction. - Model diagnostics (Phase 10) —
ModelSource,ComparedModelSource, 32 visualizer classes, 31 figure-level helpers covering classification, regression, feature explanation, model selection, and clustering. - 9 figure-level helpers —
displot,catplot,relplot,lmplot,residplot,pairplot,heatmap,clustermap,jointplot. - 54 mark methods — primitives, statistical, distribution, uncertainty, scale-aware, and diagnostic marks.
- DataFrame pluralism — polars, pandas, modin, cuDF, dask, ibis, and pyarrow all accepted via
Chart(data). - Title rendering —
Chart.properties(title="...")rendered in the SVG with theme-controlled typography. - Grid lines — theme-controlled grid rendering with configurable color, width, dash, and opacity.
- Legend — categorical and continuous legends with theme-controlled positioning and styling.
- Interactive rendering (Phase 11) —
Chart.interactive()switches to a GPU-backed WASM renderer with selections, zoom/pan, linked views, and tooltips. Backed byanywidgetfor Jupyter integration. - Selection API —
selection_point,selection_interval,selection_single,selection_multifor declaring interactive state. Conditional encodings viasel.when(...).otherwise(...). SelectionMark— configurable brush styling for interval selections.InteractiveChart— anywidget-based Jupyter widget withon_selection_changecallback and self-contained HTML export via.save().- Scene graph renderer — Rust-side
render_interactiveproduces a SceneGraph JSON consumed by the WASM GPU renderer. compose_svg_horizontal/compose_svg_vertical/compose_svg_grid— low-level Rust SVG composition helpers.- t-SNE and UMAP in pure Rust —
ManifoldVisualizerruns both viamanifolds-rs, no Pythonumap-learndependency. - 7 new diagnostic helpers —
classification_report_chart,class_balance_chart,cooks_distance_chart,prediction_error_chart,silhouette_chart,elbow_chart,manifold_chart. mark_label— text labels with collision avoidance (avoid_overlap=True).mark_image— image tiles from URL fields.RenderConfig— per-chart auto-raster policy configuration (threshold, behavior, aggregate, colormap).raster=keyword — one-off auto-raster override on.show(),.save(),.show_svg(),.show_png().score()on visualizers — all Group A visualizers implement.score()for sklearn-protocol compatibility.width=onmark_boxplot— API symmetry with other marks.stroke,angle,fill_opacitychannels — wired end-to-end to SVG attribute emission and WASM renderer.- Legend
format=andcolumns=— kwargs now wired through to legend rendering. - Packed tooltips — field-level tooltip content sent via binary buffer for interactive performance.
- Binary instance bridge — GPU data bypasses JSON serialization in interactive rendering.
Fixed¶
- Facet encoding —
facet=,facet_col=,facet_row=now correctly partition data into panels. mark_ticky-rug — single-axis tick marks render correctly in both x and y orientations.- CoordFlip rendering — no longer drops violin paths or boxplot rects under coordinate flip.
- Histogram
multiple='stack'/'fill'— bin edges now align across groups. calibration_chartrendering — layering wiring gap resolved; renders correctly via.show_svg().- Chart decomposition —
chart.pysplit into rendering, encoding helpers, and composition helpers for maintainability.
Changed¶
+operator always layers — no longer ambiguous between layering and concatenation. Use|,&,fm.hconcat(), orfm.vconcat()for concatenation.- Default theme identity is Paper Ink — warm cream background, blue marks, warm grid. Previously was Observable-style white background.
- Default categorical palette is
paper_ink— previouslyokabe_ito.