I’m happy to announce a new, minor Makie version!
The main breaking change is described in this PR.
You can find all the other important changes in the NEWS.md.
The most exciting feature surely is the much improved LaTex support, thanks to @Kolaru @jules:
using CairoMakie
f = Figure()
ax = Axis(f[1, 1])
lines!(0..10, x -> sin(3x) / (cos(x) + 2),
label = L"\frac{\sin(3x)}{\cos(x) + 2}")
lines!(0..10, x -> sin(x^2) / (cos(sqrt(x)) + 2),
label = L"\frac{\sin(x^2)}{\cos(\sqrt{x}) + 2}")
Legend(f[1, 2], ax)
f
The LaTeX string gets parsed into a glyph layout by MathTexEngine.jl, which doesn’t need a LaTeX install and makes it fast, fully interactive and one can can use LaTeX strings anywhere, where strings are used:
using GLMakie
lines(0..25, x -> 4 * sin(x) / (cos(3x) + 4), figure = (fontsize = 25,),
axis = (
xticks = (0:10:20, [L"10^{-3.5}", L"10^{-4.5}", L"10^{-5.5}"]),
yticks = ([-1, 0, 1], [L"\sum_%$i{xy}" for i in 1:3]),
yticklabelrotation = pi/8,
title = L"\int_0^1{x^2}",
xlabel = L"\sum_k{x_k ⋅ y_k}",
ylabel = L"\int_a^b{\sqrt{abx}}"
),
)
Another big update is the major rework of the 3D camera by @ffreyer, which hopefully fixes quite a few quirks that came with using LScene
:
http://makie.juliaplots.org/stable/cameras.html#Makie.Camera3D
Finally, @t-bltg fixed the volume slice recipe and gave it some docs, which only made it into the NEWS.md after we tagged the release ( ):
I hope everyone has a smooth upgrade and fun with the new features!
If you encounter any issues, please report them here.
Best,
Simon