Commit 4bfa0f9
Fix positioning of mathtext Rules
At the call site
https://github.com/matplotlib/matplotlib/blob/51fbfc4eb0e882ef7e95ceab9777c7047f4db819/lib/matplotlib/_mathtext.py#L1706-L1709
the box should clearly go from `cur_v + off_v` to `cur_v + off_v -
rule_height` (this is why `cur_v` is shifted by `+ rule_height` just
before; also at that point some print debugging indicates that y's go
*downwards*), so `Rule.render` should indeed call `render_rect_filled`
from `y - h` to `y`.1 parent 94ff452 commit 4bfa0f9
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1453 | 1453 | | |
1454 | 1454 | | |
1455 | 1455 | | |
1456 | | - | |
| 1456 | + | |
1457 | 1457 | | |
1458 | 1458 | | |
1459 | 1459 | | |
| |||
2699 | 2699 | | |
2700 | 2700 | | |
2701 | 2701 | | |
2702 | | - | |
2703 | | - | |
2704 | | - | |
2705 | | - | |
2706 | | - | |
2707 | | - | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
2708 | 2707 | | |
2709 | 2708 | | |
2710 | 2709 | | |
| |||
0 commit comments