Skip to content

Fix spacing after mathtext operators with sub/superscripts #23243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2022

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Jun 10, 2022

Picks up #22839, which did not get author response. - This is #22839 plus adding the two minor comments from there. I don't want to force-push to a foreign branch, so I've opened a separate PR. Happy to close this in case #22839 gets response.

Closes #22839, #17852.

Co-authored-by: henrybeUM 98666765+henrybeUM@users.noreply.github.com

@@ -333,6 +333,9 @@ def test_operator_space(fig_test, fig_ref):
fig_test.text(0.1, 0.6, r"$\operatorname{op}[6]$")
fig_test.text(0.1, 0.7, r"$\cos^2$")
fig_test.text(0.1, 0.8, r"$\log_2$")
# Check spacing after Sub/Super scripts
# Github issue 17852
fig_test.text(0.1, 0.7, r"$\sin^2 \cos$")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should one position the text elsewhere? Although it may not be the case here, if one continue to reuse coordinates sooner or later there will be a black area...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, of course.

Picks up matplotlib#22839.

Closes matplotlib#22839, matplotlib#17852.

Co-authored-by: henrybeUM <98666765+henrybeUM@users.noreply.github.com>
@oscargus oscargus merged commit 60ae76b into matplotlib:main Jun 12, 2022
@timhoffm timhoffm deleted the take-over-22839 branch June 13, 2022 04:59
@QuLogic QuLogic added this to the v3.6.0 milestone Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants