matplotlib中的图形编辑

如何根据标绘点的颜色为文本加上彩色?在gnuplot中,这是一个命令

set key tc variable

如何写粗体?例如标题:

plt.title('Average',fontsize=25)

我已经设置了字体:

plt.rcParams['text.latex.preamble']=[r"\usepackage{lmodern}"]
plt.rcParams['text.latex.preamble']=[r"\usepackage{bm}"]
params = {'text.usetex' : True,'font.size' : 18,'font.family' : 'lmodern','text.latex.unicode': True,}
plt.rcParams.update(params)

我尝试了\bftext{}或添加了参数fontweight='bold'

zhouzombie 回答:matplotlib中的图形编辑

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3130428.html

大家都在问