I'm using the following rcParams
to change the math font for the axis label to the default font by Matplotlib:
plt.rcParams.update({'mathtext.default': 'regular'})
The label for the y-axis on the left side of the figure below was generated with a LaTeX math expression:
plt.ylabel('Concentration ($mol/m^3$)')
The label for the y-axis on the right side of the image was generated from a standard label declaration:
plt.ylabel('Concentration (mol/m^3)')
As you can see in the figure, when LaTeX is used in the ylabel
string, the displayed font is different than the regular label font.
How can I make labels created with LaTeX math expressions use the default Matplotlib font?