Skip to content
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

Demonstrate both usetex and non-usetex in demo_text_path.py. #23029

Merged
merged 1 commit into from May 15, 2022

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented May 10, 2022

PR Summary

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

@oscargus
Copy link
Contributor

@oscargus oscargus commented May 15, 2022

Looks like the text is rendered with different font size (although it is set the same). Of course not related to the example code, but maybe worth commenting on in the example?

I think it is a step in the right direction, so feel free to self-merge once the linting is sorted out.

@anntzer
Copy link
Contributor Author

@anntzer anntzer commented May 15, 2022

Let's defer the size problem to another time.

Copy link
Member

@timhoffm timhoffm left a comment

IMHO there's still a lot room for improvement in this example, e.g.

  • Structure: There are multiple things going on and it's hard to see which code part affects which part of the image.
  • Clarity: The mentioned image clipping is hard to spot because it only uses two characters, each of which clips an area of largely constant color.
  • Clutter: The Offsetbox/AnnotationBbox stuff adds a lot of code that is not related to the main objective of the example.

Anyway, It's an improvement to show both usetex cases explicitly.

@timhoffm timhoffm merged commit d39bfa8 into matplotlib:main May 15, 2022
27 of 31 checks passed
@anntzer anntzer deleted the dtp branch May 15, 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.

None yet

3 participants