You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Revert "Change font styles to work well without LaTeX (#94)"
This reverts commit 337e87a.
* Re-refix #30 in accordance to #93
Still need to ensure desired behaviour.
Co-Authored-By: Josh Borrow <josh@joshborrow.com>
---------
Co-authored-by: Josh Borrow <josh@joshborrow.com>
Environment
Describe the issue here
Using the
no-latex
stylesheet provides very different rendering to those that require a TeX distribution.Throughout, I will use the following test script:
For $STYLESHEETS = "science", we get the following:
Where all of the labels are rendered using the default TeX font.
But when using $STYLESHEETS = "science", "no-latex", we get the following:

Where the fonts are now replaced by the matplotlib defaults (in this case Dejavu Serif).
In my opinion, the package should strive to keep rendering as close as possible between scenarios where TeX is used and where it is not.
By modifying the
no-latex.mplstyle
stylesheet to be the following:We can ensure that the rendering looks as close as possible:

This should never fail, as
cm
andcmr10
are TTFs that are bundled with matplotlib itself (they reside inmpl-data
).Now in reality setting the correct fonts should not be the
no-latex
stylesheet's responsibility.In particular to remedy this bug you would want to change in
science.mplstyle
:Or if you wanted to use the Times family:
The text was updated successfully, but these errors were encountered: