Just like any other Makie.jl
backend, you can simply using TaichiMakie
and then do plots.
using TaichiMakie
fig = Figure(resolution = (600, 600))
ax = Axis(fig[1, 1], xlabel = "x", ylabel = "y")
lines!(ax, 1:10, 1:10)
save("test.png", fig)
This plot contains some bugs.
- The notorious time-to-first-plot (TTFP) issue.
- To mitigate this, you can use
deps/create_sysimage.jl
to create a sysimage for TaichiMakie. This will significantly reduce the TTFP. - After creating the sysimage, you can use
julia --sysimage=taichi_makie.so
to start Julia with the sysimage.
- To mitigate this, you can use
- Taichi GGUI does not support the following features:
- anti-aliasing
- alpha
- Support for meshes is still erroneous.