【发布时间】:2019-03-03 21:24:52
【问题描述】:
我正在用 Python(.py 文件)编写脚本,并且正在使用 Matplotlib 绘制数组。 我想在情节中添加一个带有公式的图例,但我无法做到。 我以前在 IPython 或终端中做过这个。在这种情况下,写这样的东西:
legend(ur'$The_formula$')
完美运行。但是,当我从终端/IPython 调用我的 .py 脚本时,这不起作用。
【问题讨论】:
标签: python matplotlib latex