I have started to notice that some packages (like Makie and Plots) require passing arguments to functions that are preceded by a colon.
For example, the Makie.jl basic tutorial https://docs.makie.org/stable/tutorials/basic-tutorial/ gives the following code to change the background color of a figure
f = Figure(backgroundcolor = :tomato)
As another example, under the Plots.jl documentation for setting attributes https://docs.juliaplots.org/latest/attributes/ they provide the following example to show how to set attributes corresponding to a series marker.
scatter(y, marker = (:hexagon, 20, 0.6, :green, stroke(3, 0.2, :black, :dot)))
From the Julia documentation about punctuation doing something like :a
implies that a
is a symbol. But this doesn’t really help me understand what is happening or if it even applies here.
Any further insight to what is going on here would be really helpful!