I want all text in my plots to be Times New Roman, so I did the following:
import matplotlib.pyplot as plt
plt.rcParams["font.family"] = "Times New Roman" # change default font
and I only want the '(x)' and '(z)' portions of my labels to be italics, so I did:
plt.xlabel('Underutilization $\it{(x)}$', labelpad=15)
plt.ylabel('Productivity $\it{(z)}$', labelpad=15)
However, what I end up with upon plotting is 'Underutilization' in Times New Roman, but '(x)' in an italicized sans serif (the default of Python). Same with the ylabel.
How can I remedy this?