Repository navigation
Conversation
|
I found that the easiest option is to turn the use of tex off for the as I now also commented on the other issue. This will of course simply circumvent the problem of having to set the math mode font. But I think one of the most common problems is really related to the ticklabels. |
|
but then the tick labels won't be rendered using TeX (and other mathematical symbols, numbers will still be using TeX when |
|
The point is most often when using tex ( A versatile and general solution is of course the one that sets the math font of latex to a different one. This solution is presented in the pgf-system example and essentially this PR wants to use the same concept. |
PR Summary
Issues #11586, #8436, #6041, #3999.
The current documentation doesn't say that setting
text.usetex = Truedoesn't set the correct maths font (applicable to mathematical symbols and the numbers in the tick labels).Based on the answer given here https://stackoverflow.com/a/16345065 and here #6041 (by @mdboom) and as suggested by @jklymak in #11586, this is an attempt to fix the documentation at https://matplotlib.org/tutorials/text/usetex.html.
I am not sure about how the sphinx gallery works and where to add the png files.
usetex_maths_DejaVu-Sans.png

usetex_maths_cmbright.png

PR Checklist
Has Pytest style unit testsNew features are documented, with examples if plot relatedAdded an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way