Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add overset/underset whatsnew entry#19497

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
anntzer merged 4 commits intomatplotlib:masterfromaitikgupta:overset-rst
Feb 11, 2021

Conversation

aitikgupta
Copy link
Contributor

@aitikguptaaitikgupta commentedFeb 11, 2021
edited
Loading

PR Summary

This is a continuation of the previous PR#18916,
w.r.t. this comment:#18916 (comment)

PR Checklist

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (runflake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • Conforms to Matplotlib style conventions (installflake8-docstrings and runflake8 --docstring-convention=all).
  • New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).

Comment on lines 4 to 9
`.mathtext`, the default TeX layout engine which is shipped along with
Matplotlib now supports symbols like *overset* and *underset*.

The structure which should be followed: "\overset{body}{annotation}" or
"\underset{body}{annotation}", where *body* would be the text "above" or
"below" the *annotation* - the baseline character.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`.mathtext`, the default TeX layout engine which is shipped along with
Matplotlib now supports symbols like *overset* and *underset*.
The structure which should be followed: "\overset{body}{annotation}" or
"\underset{body}{annotation}", where *body* would be the text "above" or
"below" the *annotation* - the baseline character.
`.mathtext` now supports *overset* and *underset*, called as
``\overset{body}{annotation}`` or ``\underset{body}{annotation}``, where
*annotation* is the text "above" or "below" the *body*.

Copy link
Member

@jklymakjklymak left a comment

Choose a reason for hiding this comment

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

Suggest more direct language. Also I think your transposed "body" and "annotation"

@jklymakjklymak added this to thev3.4.0 milestoneFeb 11, 2021
@aitikgupta
Copy link
ContributorAuthor

Suggest more direct language.

👍🏼

Also I think your transposed "body" and "annotation"

body is supposed to be the text that goes above or below theannotation, see#18916 (comment)
Also this:

ifoverunder=="under":
vlist=Vlist([cannotation,# annotation
Vbox(0,vgap),# space
cbody# body
])

@anntzer
Copy link
Contributor

I guess I didn't pay attention in my original review; certainly "body" should be the main thing and "annotation" the out-of-alignment extra thing.

@jklymak
Copy link
Member

jklymak commentedFeb 11, 2021
edited
Loading

Suggest more direct language.

👍🏼

Also I think your transposed "body" and "annotation"

body is supposed to be the text that goes above or below theannotation, see#18916 (comment)
Also this:

ifoverunder=="under":
vlist=Vlist([cannotation,# annotation
Vbox(0,vgap),# space
cbody# body
])

OK, that is super confusing. In\overset{\Delta x\to 0}{\longrightarrow} I'd have said\Delta x \to 0 is an annotation on\longrightarrow.

Ooops, crosspost with above.

@aitikgupta
Copy link
ContributorAuthor

I can clean the logic up in this PR
Initially even I was confused as to whatannotation andbody would be 😬

jklymak reacted with thumbs up emoji

---------------------------------------------------------------------------

`.mathtext` now supports *overset* and *underset*, called as
``\overset{body}{annotation}`` or ``\underset{body}{annotation}``, where
Copy link
Member

Choose a reason for hiding this comment

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

OK, but now this is wrong again, right?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yeah, I blindly copied the suggestion, let me fix that

@anntzeranntzer merged commit92b4bc3 intomatplotlib:masterFeb 11, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer approved these changes

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.4.0
Development

Successfully merging this pull request may close these issues.

3 participants
@aitikgupta@anntzer@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp