Given I have multiple plots in one figure can someone tell me why the following does not work.
using CairoMakie
fig = Figure()
ax1 = Axis(fig[1, 1])
ax2 = Axis(fig[1, 2])
ax3 = Axis(fig[2, 1:2])
lines!(ax1, 0..10, sin)
text!(ax1, text = "fg", align = (:center, :top), color = :black)
lines!(ax2, 0..10, cos)
lines!(ax3, 0..10, sqrt)
fig
produces the error
ERROR: MethodError: objects of type NamedTuple{(:text, :align), Tuple{String, Tuple{Symbol, Symbol}}} are not callable
Stacktrace:
[1] top-level scope
@ ~/Downloads/DataEval.jl:178
I am very new to Makie so I could easily be missing something
Cheers,
Harry