相关疑难解决方法(0)

删除matplotlib中乳胶下标中的斜体

我想删除在标签中使用下标时出现的斜体字体.例如,x标签中的"Teff"以斜体显示"eff".我想乳胶不能以这种方式呈现它.通常,在latex中,可以使用\ rm {}命令来实现.但是,这在matplotlib中不起作用.请帮忙.

import numpy as np
import matplotlib.pyplot as plt

x = np.arange(10)
y = x

plt.plot(x,y,'ro')
plt.xlabel('Primary T$_{eff}$')
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

python latex matplotlib

13
推荐指数
1
解决办法
1万
查看次数

标签 统计

latex ×1

matplotlib ×1

python ×1