Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Typos and docs for mathtext fonts. #18004

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 2 commits into from
Jul 31, 2020
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jul 21, 2020

PR Summary

First commit:

Improve docs of mathtext internals, in particular regarding the
undocumented font_class parameter.

Also rename an unrelated variable also named font_class to avoid
confusion.

Also remove redundant entry for mathfrak+mathit in stix_virtual_fonts
-- there's actually no frak+it font, the table just duplicates frak+rm,
but we already fallback to rm by default anyways.

Second commit:

Fix typos in mathtext_data, as can be checked with

rcParams["ps.useafm"] = True
figtext(.5, .5, "$\\Lambda\varphi$")
savefig("/tmp/test.ps")

and inspecting the resulting file.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/next_api_changes/* if API changed in a backward-incompatible way

@anntzer
Copy link
Contributor Author

anntzer commented Jul 29, 2020

handled.

@anntzer anntzer force-pushed the mathtext branch 2 times, most recently from f5d2a77 to ba39454 Compare July 29, 2020 21:08
Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Modulo some missing quotes.

anntzer added 2 commits July 31, 2020 19:57
... in particular regarding the undocumented *font_class* parameter.

Also rename an unrelated variable also named `font_class` to avoid
confusion.

Also remove redundant entry for mathfrak+mathit in `stix_virtual_fonts`
-- there's actually no frak+it font, the table just duplicates frak+rm,
but we already fallback to rm by default anyways.
As can be checked with
```
rcParams["ps.useafm"] = True
figtext(.5, .5, "$\\Lambda\varphi$")
savefig("/tmp/test.ps")
```
and inspecting the resulting file.
@QuLogic QuLogic merged commit 9756aca into matplotlib:master Jul 31, 2020
@anntzer anntzer deleted the mathtext branch July 31, 2020 19:10
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.

3 participants