我正在用Python编写脚本(.py文件),我正在使用Matplotlib来绘制数组.我想在情节中添加带有公式的图例,但我无法做到.我之前在IPython或终端中做过这个.在这种情况下,写这样的东西:
legend(ur'$The_formula$')
工作得很好.但是,当我从终端/ IPython调用我的.py脚本时,这不起作用.
python latex matplotlib
latex ×1
matplotlib ×1
python ×1