| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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.
Sorry, something went wrong.
|
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: cmr10_cmsy10_substitutions should probably be private; the way it is used seems to be an implementation detail. |
Sorry, something went wrong.
|
Perhaps https://docs.pytest.org/en/7.1.x/how-to/logging.html#caplog-fixture can help. |
Sorry, something went wrong.
|
I was more thinking about testing that the multiplication sign shows up (instead of ¤), rather than the warning thing. |
Sorry, something went wrong.
I think this would require an image comparison test? I could add it if required. |
Sorry, something went wrong.
|
Strange. How did the code coverage decrease. There are no uncovered lines reported in the diff. |
Sorry, something went wrong.
|
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...) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Fixes #10029.
import matplotlib.pyplot as plt plt.rcdefaults() plt.rc('font', family=['cmr10']) plt.rc('mathtext', fontset='cm') plt.rc('axes.formatter', use_mathtext=True) plt.semilogy([-0.03, 0.05], [0.3, 0.05]) plt.show()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
Documentation