I observed errors when rendering math in matplotlib 2.0.2 when using the standard mathtext unlike LaTeX . It seems that some glyphs (in my case the minus and the multiplication sign) are not recognized by the mathematical text. What is really strange is that an error only occurs when these specific glyphs appear in tick marks. When I intentionally type some expression for the mafia, for example. the name of the picture, it works great.
Consider the example below and the resulting image:
import matplotlib import matplotlib.pyplot as plt

As you can see in the image, the multiplication and some minus signs in the label labels are replaced with other symbols. If I use LaTeX (setting 'text.usetex' to True ), everything will look beautiful. Why is this happening, and more importantly, how can I fix it without changing from mathtext to LaTeX?
Additional Information
This is a warning that is printed when the sample code runs:
mathtext.py:866: MathTextWarning: Font 'default' does not have a glyph for '\times' [U+d7] MathTextWarning) mathtext.py:867: MathTextWarning: Substituting with a dummy symbol. warn("Substituting with a dummy symbol.", MathTextWarning)
Please note that minus signs appearing in exhibitors are displayed correctly. They also do not appear, possibly if I leave 'mathtext.fontset': 'cm' , creating another similar warning:
mathtext.py:866: MathTextWarning: Font 'default' does not have a glyph for '-' [U+2212] MathTextWarning) mathtext.py:867: MathTextWarning: Substituting with a dummy symbol. warn("Substituting with a dummy symbol.", MathTextWarning)
Also, if I include 'axes.unicode_minus': False in rcParams (and keep 'mathtext.fontset': 'cm' ), all minus signs are displayed correctly, although the problem remains for the multiplication signs.
Multiplication sign error does not seem to be a problem in older versions of matplotlib (I tested 1.5.1, 1.4.3 and 1.3.1). However, these matplotib insist on producing only tick marks at 10⁻², 10⁻¹, 1, 10, 10², etc., therefore, the multiplication sign is never needed.