I'm not sure what the reason causing this, but when I apply this command line plt.rcParams['mathtext.fontset'] = 'stix'
in labelling x-axis, it will not change the math symbol to font like Times New Roman.
Did anyone how can I fix this?
import matplotlib.ticker as ticker
import matplotlib.pyplot as plt
plt.rcParams['mathtext.fontset'] = 'stix'
plt.gca().xaxis.set_minor_locator(ticker.AutoMinorLocator())
plt.xlabel("COM Distance Between Polymer and Calcite Surface ($\AA$)",fontname="Times New Roman",fontsize=12)