Skip to content

Commit d4755d4

Browse files
authored
Merge pull request #41 from CSSFrancis/release/v0.4.1
2 parents 63a4ecc + a7d32f0 commit d4755d4

7 files changed

Lines changed: 41 additions & 23 deletions

File tree

‎CHANGELOG.rst‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
1344
0.4.0 (2026-07-18)
1445
==================
1546

‎docs/_root/index.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
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>

‎docs/_root/switcher.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
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",

‎docs/conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
project = "anyplotlib"
1818
copyright = "2026, anyplotlib contributors"
1919
author = "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.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exclude = [
1313

1414
[project]
1515
name = "anyplotlib"
16-
version = "0.4.0"
16+
version = "0.4.1"
1717
description = "A plotting library using python, javascript and anywidget for performant in browser plotting."
1818
readme = "README.md"
1919
license = { text = "MIT" }

‎upcoming_changes/+narrow_band_grab.bugfix.rst‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎upcoming_changes/+widget_max_extent.new_feature.rst‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)