大自然
import matplotlib.pyplot as plt
plt.plot()
plt.xlabel(r'Production$_{world}$')
如红色框所示,“ World”一词我不想将其斜体化。
初学者
您可以通过添加字体设置来做到这一点。
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(4,3),dpi=144)
plt.plot()
plt.xlabel(r'Production$_\mathrm{world}$')
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
编辑于
我来说两句