如题。想输出R平方,冲突了。
ax.text(3.9, 1.95, r"Normal: coef_: {:.2f} intercept: {:.2f} R$^{2}$: {:.4f}". format(coef[0,0], intercept[0], score1), fontsize = 8)
如题。想输出R平方,冲突了。
ax.text(3.9, 1.95, r"Normal: coef_: {:.2f} intercept: {:.2f} R$^{2}$: {:.4f}". format(coef[0,0], intercept[0], score1), fontsize = 8)
是不是花括号冲突,转义一下
不是很懂latex,你希望输出什么
或者参考:
https://zgljl2012.com/python-shi-yong-formatshi-ru-he-zhuan-yi/