Get Mathtext \times symbol from cmsy10 when using cmr10.#23702
Get Mathtext \times symbol from cmsy10 when using cmr10.#23702timhoffm merged 2 commits intomatplotlib:mainfrom
\times symbol from cmsy10 when using cmr10.#23702Conversation
oscargus
left a comment
There was a problem hiding this comment.
One may consider a test. but I cannot really tell what would be the simplest test as a normal text with `\times' does already work.
|
I think testing this isn't straightforward, since the missing multiplication sign logs a warning, but doesn't raise a user warning. (Otherwise, something similar to #20235 could be used to detect it.) One thing I missed: |
|
Perhaps https://docs.pytest.org/en/7.1.x/how-to/logging.html#caplog-fixture can help. |
|
I was more thinking about testing that the multiplication sign shows up (instead of ¤), rather than the warning thing. |
ba3891d to
077ea7c
Compare
I think this would require an image comparison test? I could add it if required. |
|
Strange. How did the code coverage decrease. There are no uncovered lines reported in the diff. |
|
I do not really understand how that test works, but it does fail from time to time, so no worries about it. (Except for maybe people not reviewing as the build "fails" anyway...) |
48192cc to
f53301d
Compare
PR Summary
Fixes #10029.
I felt that having all glyph fixes in the same place would result in cleaner code. This will also be easy to extend if, in the future, we plan to add more glyph substitutions.
PR Checklist
Tests and Styling
pytestpasses).flake8-docstringsand runflake8 --docstring-convention=all).Documentation
doc/users/next_whats_new/(follow instructions in README.rst there).doc/api/next_api_changes/(follow instructions in README.rst there).