Как написать этот x в xlabel жирным шрифтом и курсивом?
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
plt.rcParams['text.latex.preamble']=[r"\usepackage{lmodern}"]
params = {'text.usetex' : True,
'font.size' : 14,
'font.family' : 'lmodern',
'text.latex.unicode': True,
}
plt.rcParams.update(params)
fig, ax = plt.subplots()
ax.annotate('x', xy=(0.93, -0.01), ha='left', va='top', xycoords='axes fraction', weight='bold', style='italic')
plt.show()
Добавление from matplotlib import rc
не помогает.