-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[ENH]: Global setting to make /mathdefault
the default math type
#22937
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
Comments
Someone also asked the same question on Discourse: |
It is possible to set a single font for the entire figure, but multiple
Any other font can be used as well.
(It may be necessary to delete the font cache if you are using a recently-installed font.) |
I believe that the solution linked on discourse (setting mathtext.fontset = "custom", mathtext.rm = ..., mathtext.sf = ... as desired) is effectively the correct one, and using STIX as suggested by @tfpf should work too. Closing, but feel free to ping for reopen if you think more should be done. |
Problem
I am trying to generate scientific journal compatible figures in Matplotlib. Most of the journals have specific font requirements (e.g. Times New Roman) and I find myself typing something like
$\mathdefault{_x}$
instead of just${_x}$
throughout the script, which reduces the readability of the scrpit.Proposed solution
Is it possible to have a global setting like
matplotlib.rcParams
that can be set once for the entire figure?The text was updated successfully, but these errors were encountered: