我试图在我的阴谋中使案文合理化:
import matplotlib.pyplot as plt
plt.plot([1,2,3],[1,1,1], label = $it{ABC123}$ )
plt.legend()
plt.show()
http://stackoverflow.com/questions/8376335/styling-part-of-label-in-legend-in-matplotlib> 栏目:
but this only italicized ABC
, not 123
, which was also noticed, but left unsolved, by Matplotlib italic font cannot be applied to numbers in the legend?
我还尝试了usetex
>,但改动了真线,使这一数字与Im制作的其他数字不符。
I m on Zhu 3.10.12 and
matplotlib 3.8.1
matplotlib-inline 0.1.3
如何对信函和编号进行校正,例如