File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,37 @@ Fragment files in ``upcoming_changes/`` are assembled into this file by
1010
1111.. towncrier release notes start
1212
13+ 0.4.1 (2026-07-26)
14+ ==================
15+
16+ New Features
17+ ------------
18+
19+ - Added ``max_extent= `` to :class: `~anyplotlib.widgets.RangeWidget ` and
20+ :class: `~anyplotlib.widgets.RectangleWidget ` (and the matching
21+ ``add_range_widget `` / ``add_rectangle_widget `` factories) — a size cap enforced
22+ *while dragging *, so the widget physically stops growing instead of being
23+ clamped after the fact. The dragged edge/corner pins and the opposite one stays
24+ put, so the selection never jumps under the cursor. ``RangeWidget `` takes a span
25+ width in data units; ``RectangleWidget `` takes a scalar (both axes) or a
26+ ``(max_w, max_h) `` pair. Default ``None `` leaves widgets unbounded.
27+
28+ Use it when a widget's size drives real downstream work — e.g. an integrating
29+ selector whose span is a number of frames to read.
30+
31+
32+ Bug Fixes
33+ ---------
34+
35+ - Fixed the band-style :class: `~anyplotlib.widgets.RangeWidget ` being impossible
36+ to drag by its body when narrow. Each edge claimed a fixed ±12 px grab zone, so
37+ a band under ~24 px wide on screen (routine when zoomed out, or when its span is
38+ capped) had no grabbable middle: aiming at the body to translate the band caught
39+ an edge and resized it instead. Each edge now takes at most a third of the
40+ band's width, leaving the middle third for the move handle. Wide bands are
41+ unaffected.
42+
43+
13440.4.0 (2026-07-18)
1445==================
1546
Original file line number Diff line number Diff line change 44 < meta charset ="utf-8 " />
55 < title > anyplotlib – redirecting…</ title >
66 <!-- Redirect to the latest dev docs. -->
7- < meta http-equiv ="refresh " content ="0; url=v0.4.0 / " />
8- < link rel ="canonical " href ="v0.4.0 / " />
7+ < meta http-equiv ="refresh " content ="0; url=v0.4.1 / " />
8+ < link rel ="canonical " href ="v0.4.1 / " />
99 </ head >
1010 < body >
1111 < p >
12- Redirecting to < a href ="v0.4.0 / "> v0.4.0 documentation</ a > …
12+ Redirecting to < a href ="v0.4.1 / "> v0.4.1 documentation</ a > …
1313 </ p >
1414 </ body >
1515</ html >
Original file line number Diff line number Diff line change 44 "version" : " dev" ,
55 "url" : " https://cssfrancis.github.io/anyplotlib/dev/"
66 },
7+ {
8+ "name" : " v0.4.1 (stable)" ,
9+ "version" : " v0.4.1" ,
10+ "url" : " https://cssfrancis.github.io/anyplotlib/v0.4.1/"
11+ },
712 {
813 "name" : " v0.4.0 (stable)" ,
914 "version" : " v0.4.0" ,
Original file line number Diff line number Diff line change 1717project = "anyplotlib"
1818copyright = "2026, anyplotlib contributors"
1919author = "anyplotlib contributors"
20- release = "0.4.0 "
20+ release = "0.4.1 "
2121
2222# When built in CI the workflow sets DOCS_VERSION to the tag name (e.g.
2323# "v0.1.0") or "dev". Fall back to "dev" for local builds.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ exclude = [
1313
1414[project ]
1515name = " anyplotlib"
16- version = " 0.4.0 "
16+ version = " 0.4.1 "
1717description = " A plotting library using python, javascript and anywidget for performant in browser plotting."
1818readme = " README.md"
1919license = { text = " MIT" }
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments