Commit 7a8a8e7
committed
Assign event to later Axes if zorders are tied.
If axes zorders are tied, axes appearing later in figure.axes get
drawn above those appearing earlier, so events should be preferably
assigned to them. By default, max() returns the *first* maximum in case
of ties, so the previous implementation was not satisfactory.1 parent 8bc197a commit 7a8a8e7
3 files changed
Lines changed: 29 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1527 | 1527 | | |
1528 | 1528 | | |
1529 | 1529 | | |
1530 | | - | |
1531 | | - | |
1532 | | - | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
1542 | | - | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
1543 | 1541 | | |
1544 | | - | |
1545 | | - | |
| 1542 | + | |
1546 | 1543 | | |
1547 | 1544 | | |
1548 | 1545 | | |
| |||
1805 | 1802 | | |
1806 | 1803 | | |
1807 | 1804 | | |
1808 | | - | |
| 1805 | + | |
1809 | 1806 | | |
1810 | 1807 | | |
1811 | 1808 | | |
| |||
2893 | 2890 | | |
2894 | 2891 | | |
2895 | 2892 | | |
2896 | | - | |
| 2893 | + | |
2897 | 2894 | | |
2898 | 2895 | | |
2899 | 2896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
2752 | 2753 | | |
2753 | 2754 | | |
2754 | 2755 | | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
0 commit comments