0
我有一个图,其中在y标签具有用于在它的数量级,其余产生具有下面的行上标:matplotlib TEX标签添加/删除空格
# plt is acquired from matplotlib.pyplot
# orderMagnitude is a variable taken from a different part of the code
plt.ylabel('${\mathrm{Intensity (10^'+str(int(orderMagnitude))+')}}$')
的{\mathrm{..}}
部分加入,因为没有它的整个文本将是斜体(实际数字除外)。我有该行现在似乎除去Y(强度)和开放之间的白色空间“(”然而,似乎在orderMagnitude后添加一些空白(见图片)。
不有人知道为什么会发生这种情况吗?
使用'\ text {Intensity}'而不是'\ mathrm',在数学模式中也可以看到[here](http://www.personal.ceu.hu/tex/math.htm#spacing) –