乳胶;乳胶
|
该页面正在翻译中。 |
Makie可以从https://github.com/stevengj/LaTeXStrings.jl[LaTeXStrings.jl]包使用https://github.com/Kolaru/MathTeXEngine.jl/[MathTeXEngine.jl]。
虽然这个引擎的响应速度足以在GLMakie中使用,但它只支持LaTeX最常用命令的子集。
使用L字符串
using CairoMakie
f = Figure(fontsize = 18)
Axis(f[1, 1],
title = L"\forall \mathcal{X} \in \mathbb{R} \quad \frac{x + y}{\sin(k^2)}",
xlabel = L"\sum_a^b{xy} + \mathscr{L}",
ylabel = L"\sqrt{\frac{a}{b}} - \mathfrak{W}"
)
f
您还可以混合数学模式和文本模式。 为https://docs.julialang.org/en/v1/manual/strings/#string-interpolation[字符串插值]使用 %$而不是 $:
</无翻译>
using CairoMakie
f = Figure(fontsize = 18)
t = "text"
Axis(f[1,1], title=L"Some %$(t) and some math: $\frac{2\alpha+1}{y}$")
f