Number of plots in makie Axis object

Using makie, if we type the name of an Axis object in the repl, we get something like:

Axis with 2 plots:
 ┣━ Scatter{Tuple{Vector{Point{2, Float64}}}}
 ┗━ Lines{Tuple{Vector{Point{2, Float64}}}}

Is there a way to get this information programatically?
Specifically, I’d like to get the number of plots in the Axis at a given moment.

ax.scene.plots

2 Likes

Perfect, thanks!

Would it be reasonable to document it here? Axis | Makie

See documentation on Makie scenes.

1 Like