import matplotlib.pyplot as plt
plt.plot()
plt.xlabel(r'Production$_{world}$')
如图红框所示,“World”这个词我不希望它是斜体的。
发布于 2020-08-29 12:09:40
您可以通过添加字体设置来执行此操作。
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(4,3),dpi=144)
plt.plot()
plt.xlabel(r'Production$_\mathrm{world}$')
https://stackoverflow.com/questions/63643125
复制相似问题