Commit a50ed93
committed
feat(events): 1-D / PlotXY double_click reports ydata (data coords)
The 1-D dblclick handler already computed xdata; add ydata by inverting the
linear y transform. draw1d caches the rendered y bounds (p._1dDMin/_1dDMax) so
the inverse uses exactly what was drawn — for a PlotXY coordinate axis the y
range is y_range, not the hidden zero-curve's data_min/max. Matches the 2-D
image path so a coordinate axis can be picked in data space.
Test: test_double_click_reports_data_coords (centre click → centre of x/y range).1 parent 6cc6b4b commit a50ed93
3 files changed
Lines changed: 40 additions & 3 deletions
File tree
- anyplotlib
- tests/test_plotxy
- upcoming_changes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3261 | 3261 | | |
3262 | 3262 | | |
3263 | 3263 | | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
3264 | 3268 | | |
3265 | 3269 | | |
3266 | 3270 | | |
| |||
4588 | 4592 | | |
4589 | 4593 | | |
4590 | 4594 | | |
4591 | | - | |
| 4595 | + | |
4592 | 4596 | | |
4593 | 4597 | | |
4594 | 4598 | | |
4595 | 4599 | | |
4596 | 4600 | | |
4597 | | - | |
4598 | | - | |
| 4601 | + | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
4599 | 4609 | | |
4600 | 4610 | | |
4601 | 4611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
61 | 85 | | |
62 | 86 | | |
63 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments