如何用xlabel粗体和斜体写这个x?
import matplotlib.pyplot as plt
import font
fig, ax = plt.subplots()
ax.annotate('x', xy=(0.93, -0.01), ha='left', va='top', xycoords='axes fraction', weight='bold')
使用weight
和style
参数:
ax.annotate(..., weight='bold', style='italic')