Repository navigation
HyperTools 1.2.0: animated panel grids, caption=, shared panel colors/legend/colorbar (GH #295) - #298
Merged
Merged
Conversation
README images pinned to the v1.1.1 tag (13 URLs). The k-means panel of plot_colorbar.py and the UMAP panel of plot_digits.py came out different on every docs build; both now pass random_state=0, so the gallery is the same from build to build apart from examples that read live data. Changelog entry, release notes draft and session notes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
umap-learn forces n_jobs=1 when seeded and warns that it did. hypertools
passed n_jobs=1 itself for the top-level random_state= on the bare-name
form only; reduce={'model': 'UMAP', 'kwargs': {'random_state': 0}} (the
form several gallery examples use) and the dict form with a top-level seed
still drew the warning. An explicit n_jobs still gets umap's warning.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
The biplane is the one shape that loads as a DataFrame (columns x, y, z), so its panel alone carried axis labels, one of them in the grid's empty cell (in the 1.1.0 gallery too). The example passes empty labels. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…e speed On a slow Windows runner two Kalman fits took 0.5 s, so the 'needs 8 forecast fits ... roughly 12.8 s' notice fired inside tests that assert no warnings at all. Both pass slow_warning_seconds=None, as tests/plot/test_forecast_schedule.py does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
The index (moov atom) goes before the media data, so a browser starts playing a saved clip while it downloads. Applies to the matplotlib writer, the streaming recorder and the plotly export; .avi and .mkv are unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…on= (GH #295) panels=/subplots= with animate= used to raise. The grid is now drawn by re-entering plot() once per panel in a panel-cell mode, where the matplotlib backend draws into the given axes and hands back its frame function, and one FuncAnimation drives every panel on one clock. Each rotating 3-D cube is zoomed out until it stays inside its own cell; with axis labels the figure is enlarged. on_frame= is called once per frame for the figure, with a FrameContext whose new panels field holds one context per panel. caption= draws a figure-level caption (string, '{index}' pattern or a callable taking the FrameContext) under a single plot or a grid, updated every frame, placed below the lowest drawn content with the figure grown downward when there is no blank room. labels= bookkeeping is kept per axes, so labels follow the reveal in every panel. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
New real-figure tests for the grid animation and the caption. The tests that asserted the old panels= + animate= refusal now assert the animation, and the three trail keywords are checked per panel on an animated grid. The 1.1.0 changelog tests read that release's own Added subsection. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Animation guide sections, a gallery example, the FrameContext.panels attribute, the changelog entries and a session note. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…#295) Without size=, one 3.2 in square cell per panel (at least 6.4 in wide) instead of matplotlib's 6.4 x 4.8 in, so a saved clip of a row of panels is not mostly blank canvas. A static grid's default size is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Color means one thing across a panels= grid: each dataset keeps its single-axes color, hue= maps through one grid-wide scale, and the legend and colorbar are drawn once, in a strip right of the grid, on both backends and for animated grids. Per-panel legends/colorbars remain only where clusters are fit per panel. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Rewrites the tests that asserted per-panel legends, colorbars and first-palette-color panels (owner decision 2026-11-22 for 1.2.0), adds tests for legend=True numbering, palette dicts, colorbar sides, label conflicts and the plotly grid, places a plotly colorbar on any side of the whole grid, and documents the behavior (plot() docstring, docs/animation.rst, CHANGELOG, session notes). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
The strip now starts right of what the last column draws (a 3-D panel's z-axis label hangs outside its box), and the hue range is only passed to the multicolor-line helper when a grid pins it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…ta is below (GH #295) The Pipeline path of analyze() (return_model=True, manip=, cluster=) warned 'ndims/n_components was set to 3 but the data only has 2 feature(s)' for plot()'s own default ndims, so every panels= grid of 2-column data (and hyp.plot(two_column_data, return_model=True)) warned where the plain single-axes call is silent. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
- animate={...} is resolved once, by the resolver plot() itself uses, before
a grid splits its kwargs per panel: per-dataset values inside the dict are
narrowed per panel and {'style': False} is a static grid
- no datatype isinstance in the grid code (tests/test_datatype_gate.py)
- a failed panels= call closes every figure it registered with pyplot
- caption (and animated 3-D title) callables get the real frame-0 context;
a static grid's caption gets the finished grid's (datasets, artists, axes,
panels)
- a grid caption's {index} is the reveal head of the panel drawing the
first indexed dataset, so it matches that panel's title in every style
- captions are wrapped to the figure width, per frame, with room for the
first, middle and last frames' lines; an empty caption adds nothing
- per-frame panel titles get their room in the grid layout
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
- 3-D axis labels stay inside their own panel, static and animated: the label offset scales with the cube, so the cube is fitted smaller and the figure grows only where a cube would fall under 70% (static: 65%) of its unlabeled size, in the limiting direction, in small re-fitted steps - an explicit size= on an animated labeled grid is honored down to cubes half their unlabeled size; a refusal names a size that works and xlabel='', ylabel='', zlabel=''; rotations=0 is fitted for its one view - legend_kwargs loc picks the side of the grid the shared legend's strip is on (room reserved on that side only); bbox_to_anchor, loc='center' and plotly x/y reserve no strip - a panel's transient legend no longer drives its cell's layout (one 'Tight layout not applied' warning per panel in a many-panel grid) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…d placement (GH #295) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…he single-axes call does (GH #295) Review round 2 (Codex 1-8, 10; tester R2-R7, R10). One mechanism replaces the per-panel decisions: _resolve_grid_colors makes the single-axes call of every dataset (analyzed rows, no analysis) and each panel is handed its share through plot()'s internal _panel_shared: - hue classification (integer hue categorical vs continuous) is the grid's - an all-NaN or all-unlabeled panel draws gray under the grid's scale - the grid's one colorbar is that call's (dataset colors included), also beside per-panel legends - a legend= list is validated against the grid and names the grid's categories/clusters; legend entries are in the single-axes order - palette mappings are narrowed before independent fits - whole-call warnings (non-finite hue count, legend on a continuous hue) are issued once - the bundle's 'colors' is that call's scale - plotly: line width and marker size are part of a legend entry's look; names= alone shows the grid's legend Single-axes fixes met on the way: a legend= list under a categorical hue names the categories on the line path too, and a colorbar for datasets drawn in one explicit color shows that color. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…#295) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…cubes and warns (GH #295) A static panels= grid with 3-D axis labels and an explicit size= too small for them shrank its cubes without limit (10-40 px) and drew each panel's labels over each other, silently. The cubes are now kept at half their unlabeled size at least, and one UserWarning names a size that works (found by fitting the grid at that size) and the alternative of dropping the labels. The call still draws, at the size asked for. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…e (GH #295) A per-frame title= (callable or {index...} pattern) had its room sized from frame 0 alone, so a title that grew lines later left the canvas: in an animated panels= grid, above a single 3-D animation, and above a single 2-D animation, which reserved nothing beyond the default top margin (a fixed or per-segment title taller than about three lines left the canvas there too). The room is now made for the tallest of the first, middle and last frames' titles, as a caption's room is; a single 2-D animation's figure grows upward by what its tallest title needs. Documented beside the caption's sizing rule. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…s one shared fit (GH #295) on_frame= is not called exactly once per frame on matplotlib: a save draws frame 0 twice (Animation.save runs FuncAnimation._init_draw, which draws the first frame, before its frame loop), so a callback is called n_frames + 1 times. Said so in docs/animation.rst and the plot() docstring, with a test pinning the count for a single plot and a grid. examples/plot_datasets_tour.py said panels= needs one shared fit, which panel_fit='independent' made untrue; examples/plot_gensim_text.py's matching comment is made exact as well. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…colorbar's crowded ticks (GH #295) A panels= grid's shared legend wider than the figure could give it (long labels at an explicit size=, or above/below the grid) was clipped at the canvas edge: its labels are now wrapped until it fits. A top/bottom colorbar of a continuous hue whose tick labels ran into each other (values around 1e-4 or 1e5) gets fewer ticks, at round values, measured on a real draw; the caller's own ticks and a discrete bar's are kept. Also documents, in the panels= docstring, the static-grid size= warning, the per-frame title sizing and the on_frame= call count. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…295) Owner decision 2026-11-22 for 1.2.0: with no size=, a static panels=/subplots= grid gets the figure an animated one already had -- 3.2 in per panel each way, at least 6.4 in wide, then the shared legend/colorbar strip, caption and axis-label room as before -- instead of a fixed 6.4 x 4.8 in whatever the grid's shape. The plotly grid follows the same rule at 100 px per inch. An explicit size= is honored exactly; the grid's shape (panels=True/'auto') is still chosen first from the given or default aspect; hyp.subplots() called directly keeps its own default size. _ANIMATED_PANEL_CELL_INCHES is now _PANEL_CELL_INCHES, with _default_panel_grid_size() shared by both backends. Tests: new tests/test_static_panel_grid_size.py; the two tests that asserted the old static default are rewritten for the new one. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…ops its size= (GH #295) CHANGELOG (Changed: default figure size of static grids vs 1.1.0, with a table; Added and Fixed sentences corrected), docs/animation.rst, the stored output of the one static panels= cell in docs/tutorials/reduce.ipynb (re-executed), examples/plot_shapes_zoo.py (its size=(12, 6) worked around the old fixed default), and the session notes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…ist preface, release notes draft) The 1.1.1 patch release was drafted but never tagged or uploaded; its fixes ship in 1.2.0 together with GH #295. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…sses The pass-through wrapper pinned _multicolor_line_colors' signature, so it broke when the function gained a keyword (warn_non_finite); the assertion is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…out path for static and animated grids (GH #295) Owner decision 2026-11-22, for 1.2.0. - `_outer_label_panels` is the one decision function: a label that is the same in every occupied panel of a column (x; in 3-D x and y) is drawn under the column's lowest panel, one that is the same along a row (y in 2-D, z in 3-D) on one panel of the row; labels that differ are all kept. matplotlib static and animated grids apply it through `_apply_outer_labels`, the plotly grid through `_apply_outer_labels_plotly`. - 3-D z label: on the panel at the end of the row matplotlib draws it toward (measured, `_z_label_side`); plotly writes first-column z titles in the left margin (a scene's own z title was clipped in a grid cell). - One layout: `_tighten_panel_grid` + `_lay_out_panel_grid` for static and animated grids; one 70% labeled-cube floor; every cube starts at matplotlib's default box zoom, so a static grid and the same grid animated with rotations=0 have the same figure size, axes positions and cubes. `_fit_static_cube_labels` and `_STATIC_LABELED_CUBE_SHARE` removed. - Seen from one view, outer 3-D labels hang toward the grid's outer edge and the default figure grows there (`_open_label_sides`, `_outer_label_margins`); every cube of a grid is drawn the same size. - Fixes met on the way: overlapping 3-D panel boxes after tight_layout in labeled grids; `panel_fit='independent'` grids of DataFrames with different column names were refused by the grid color resolution. - Tests: tests/test_panel_outer_labels.py (new); tests that asserted labels on every panel rewritten, each marked "CHANGED for 1.2.0". - Docs: plot() docstring, docs/animation.rst, CHANGELOG, session notes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…-keyword warnings) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…thout drawing (GH #295) The grid-wide color resolution (`_resolve_grid_colors`) made the single-axes call of every dataset with a whitelist of arguments and drew a second full figure to read the colors back. It now forwards every argument but the analysis, the per-panel overlays and the figure's own (`_GRID_RESOLUTION_DROPPED_KWARGS`), and the call returns as soon as its colors, legend entries and colorbar are resolved (`resolve_only`): before any line is interpolated, any figure created or anything drawn. With no `hue=`, clusters, legend or colorbar there is nothing to resolve and no call is made at all. - An animated mixture clustering with `colorbar=` is resolved as the quantized groups the panels draw (it was resolved as the static continuous blend and refused); the panels draw each group in the grid's color for it, not in their own members' mean. - Categories are identified by themselves: a `legend=` list that gives two categories one name no longer collapses their colors. - A matrix `hue=` is resolved once: RGB is reduced and scaled over every panel's rows, and signed mixture weights are shifted by the grid's rule, so one hue row is one color in every panel. - Row-MultiIndex frames in a list are datasets like any other: each keeps its palette color. - `font=` reaches the grid's one colorbar. tests/test_panel_color_invariant.py draws 403 grid calls and their single-axes equivalents and compares every artist's color row by row. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…as the dataset count `color=(0.2, 0.4, 0.6)` with three datasets (or an RGBA tuple with four) is one color, as the drawing reads it; the colorbar read it as one entry per dataset, resolved ONE color for three labels and failed with matplotlib's "number of FixedLocator locations (1) ... does not match the number of labels (3)". The single-color check now comes before the per-group list in `_build_colorbar_info`. Single-axes plots and panel grids alike (also in 1.1.0). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
matplotlib keeps three titles per axes; `ax.get_title()` and `ax.title`
are the center one. With `title_kwargs={'loc': 'left'}` the room for a
tall animated title was read and measured on the (empty) center title, so
nothing was reserved and the title left the canvas. The title artist that
`loc` selects is now the one read, measured and restored
(`_title_artist`).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
… on a save Every frame's caption is wrapped to the figure's width, and the wrap measured its text on a renderer taken from a real draw of the figure on a NEW canvas. During a save that replaced the canvas matplotlib had marked as saving, so the next frame's draw started the animation, which drew frame 0 again: `on_frame=` saw frame 0 three times with a callable `caption=` and `save_path=`, single plot or grid. The text is now measured on a bare renderer (`_text_metrics_renderer`): nothing is drawn and the figure keeps its canvas, which also saves one full figure draw per frame. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…l, the single-axes forecast_hue= error - plotly: every panel's `truth=` trace lists itself in its dataset's color, so a grid's "truth" entries looked different and the legend merge gave up, leaving "1, Kalman, truth" beside every panel. A drawn overlay trace is now merged like a forecast key: it keeps its color and one neutral data-free key takes the entry (`_neutral_legend_key`); overlay keys are ranked after every data entry. - A warning every panel call repeats word for word is re-issued once (`_reemit_panel_warnings`): `forecast_n_clusters=` without `forecast_cluster=`, "forecast_cluster= needs at least two forecasts". - The forecast-cost notice of an animated grid is issued once, with the grid's total fits and seconds: the panels' schedules report to one record (`forecast.grid_cost_report`, `ForecastSchedule(cost_report=)`), and the first schedule able to project its own cost projects the grid's. - A per-observation `forecast_hue=` (a list of arrays) raised "TypeError: unhashable type" from the grid's label slicing; it now raises the single-axes ValueError (`forecast.require_scalar_forecast_hue`). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
The morphing datasets' own artists are hidden for the whole animation (the one traveling cloud is all that is drawn), and matplotlib copies an artist's visibility onto its legend key: the legend was labels with no glyphs, on single axes and in a panel grid (also in 1.1.0). Every legend hypertools builds now shows its keys (`show_legend_keys`): the dataset's marker in its color. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
choreographer runs the browser under a wrapper it starts in a session of its own. scripts/render_multibyte_plotly.py left through `os._exit` at its deadline (or on a browser lifecycle error) and the wrapper, with the browser, lived on reparented to init for as long as the browser hung; the export path's `_kill_process_tree` signaled the worker's process group, which the wrapper had left. Both now read the process table once (`_descendant_pids`) and kill every descendant (`_kill_descendants`). The NO_BROWSER test watches the real process table while the script runs and asserts nothing the script started is alive after it exits; a second test kills a worker whose grandchild is in a session of its own. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…mation warning The test builds a bare FuncAnimation to document upstream's non-idempotent `_stop` and never draws it, so matplotlib warned "Animation was deleted without rendering anything" when it was collected. The assertions are unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…fixes The 1.2.0 summary also names the shared axis labels drawn on the outer panels only. New "Fixed" entries: morph legend keys, forecast warnings once per grid call, the grid's `forecast_hue=` error, processes killed when a browser is given up on; the colorbar and animated-title entries cover RGB(A) tuples and `loc='left'`/`'right'`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
`ruff check .` (the CI lint step) reported F401 twice in tests/test_panels_shared_legend_colors.py. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
The grid's shared probe and its color resolution (with panel_fit='independent', an early and a final resolution; in a reducer-list grid, every panel's probe and draw) each reduced a matrix hue= under color_reduce=: repeated work, and a stochastic reducer's randomness consumed more than once, so a seeded grid call did not draw the colors of the single-axes call. The calls a grid makes on the whole matrix now share one record of the reduction (_matrix_hue_to_rgb_once). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…gend Each panel is handed its rows of the matrix the grid resolved as a bare array, so a DataFrame hue='s column names were lost and the shared legend read 1, 2, ... on both backends. The resolution now reports the names and every panel labels its swatches with them, as the single-axes call does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…d legend Frames whose columns are named differently are resolved on bare rows (they cannot be stacked by feature name), which named every series 'dataset i' and installed that over the panel's own column name. The column names are now handed to the resolution beside the rows, so the legend, its order and the grid's color scale name each series by its column, as each dataset's own call does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
…cated align= Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
The stand-in execs 'sleep 600', so its own command line no longer names the script, and under load ps reports a process's bare name in parentheses with no arguments: the 'was it ever running' sanity check then saw '(Python)' and '(sleep)' only and failed. The leak assertion itself is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
sphinx-gallery saves an example's animation with matplotlib's stock ffmpeg writer, so every video on the documentation site had its index after the media data (found in the 1.2.0 gallery build: all 16 read ftyp, free, mdat, moov). The scraper now remuxes the videos each block wrote with -c copy -movflags +faststart; no frame is re-encoded. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
plot_autoencoders passes panels=(1, 3), not panels=True; the Datasaurus grid is 3 x 5 (found by the independent review of the 1.2.0 gallery). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
Hosted CI on matplotlib 3.11.2 failed nine tests that pass on 3.10.8. matplotlib 3.11 changed two things hypertools relied on: * Text._get_layout takes a line's height from the font's own ascent, descent and line gap (OS/2 / hhea tables) instead of the measured height of the glyphs "lp". In Noto Sans, the bundled default face, a line is 1.362 em tall, against about 1.0 em (1.2 em between lines) before. * Axis3D no longer positions an axis label that has no text. Three places assumed the older behavior: * _add_caption reserved lines * 1.2 * font size under the figure, so a wrapped caption ended below the canvas. The room is now the height the wrapped text is laid out at, measured with the caption's own font at the figure's DPI (_caption_text_height_in), and never less than the nominal line grid, so figures drawn under 3.10 keep their size. * A shared axis label emptied on an inner 3-D panel kept the position of the draw made before the cubes were fitted, outside its panel. _place_emptied_cube_labels has matplotlib place the emptied labels once in the finished layout. * A static labeled 3-D grid at an explicit size= was reported as too small when the taller label boxes of one panel overlapped, although no cube size inside the panel's square can part them and blank room lay beside every square. Such a grid is now fitted once more with the labels let into that room (_label_gutter_room); it is kept only if the labels then clear, otherwise the grid is put back and the warning is raised as before. tests/test_text_room_measured.py checks each against the real renderer. The five gallery examples checked (animate_panels, plot_datasaurus, plot_shapes_zoo, plot_impute, plot_autoencoders) render byte-identical under matplotlib 3.10.8 before and after. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
On Windows a process keeps its parent's id after the parent exits, and ids are reused, so the descendants of a render worker could include unrelated older processes -- the calling process among them. A hosted Windows job died with no pytest summary in the first test that kills a render worker. A parent link is now followed only when the child is not older than the parent, and the calling process and its ancestors are never returned. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
docs-gallery-v1.2.0 = afb1e0d, built from 9e6abab. Read the Docs reuses it instead of executing every example inside its build time limit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opened for CI. Supersedes #296 (the 1.1.1 draft, never released): this branch is that draft's release commit plus the work below, and bumps the version to 1.2.0.
Added
animate=withpanels=: one animation of the whole grid, all panels on one clock (matplotlib). Closes Animated panels: animate=True together with panels=, with a per-frame caption #295.caption=: a figure-level caption (string,'{index}'pattern or callable), updated every frame, wrapped to the figure width..mp4/.m4v/.movfiles are written fast-start.Changed (panel grids, static and animated, matplotlib and static plotly)
hue=uses one scale or one label-to-color mapping for the figure.Fixed
CHANGELOG.md.Release state
docs-gallery-v1.2.0) is recorded in it anddocs-notebooks/v1.2.0/names it.masterby fast-forward, not merged with a merge commit (the gallery record and the notebook manifest pin the exact commit).🤖 Generated with Claude Code
https://claude.ai/code/session_01DcKtysUSGLqA8RApYP9xYG