Julia 图标题由LaTeXStrings.jl和PyPlot.jl加下划线

Julia 图标题由LaTeXStrings.jl和PyPlot.jl加下划线,julia,Julia,我想生成一个人物,其标题由LaTeXStrings.jl呈现 但是,当我尝试使用\下划线时,返回ValueError 我该怎么办 示例代码是 using PyPlot using LaTeXStrings title = L"\underline{\theta}" fig, ax = subplots() ax[:plot](randn(100)) ax[:set_title](title, useTex=true) 错误是 PyError (:PyObject_Call) <typ

我想生成一个人物,其标题由LaTeXStrings.jl呈现

但是,当我尝试使用\下划线时,返回ValueError

我该怎么办

示例代码是

using PyPlot
using LaTeXStrings

title = L"\underline{\theta}"

fig, ax = subplots()
ax[:plot](randn(100))
ax[:set_title](title, useTex=true)
错误是

PyError (:PyObject_Call) <type 'exceptions.ValueError'>
ValueError(u'\n\\underline{\\theta}\n^\nUnknown symbol: \\underline (at char 0), (line:1, col:1)',)
添加rctext,usetex=true可解决此问题