When the last item in a Mathtext Vlist is an Hrule, the AGG and SVG backends render the image differently. The difference is not obvious at small font sizes.
To see this happen, we have to dive into Mathtext internals. An easy way is to modify fractions to end with the horizontal rule.
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Activity
github-actions commented on Dec 22, 2025
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
anntzer commented on Jan 31, 2026
Closed by #30059, I believe. Feel free to reopen if I missed something.
tfpf commented on Feb 1, 2026
Verified! I cannot visually discern any alignment differences in the two images now.
anntzer commented on Feb 1, 2026
@tfpf Do you know if this being fixed has any implications regarding your comment at #31046 (comment)?
(i.e. is the extra +/- still relevant?)
tfpf commented on Feb 1, 2026
My first thought was that it might, but I think I was wrong! I have added the details in that thread.