I’m wondering if there is a way to change the axis properties after plotting. For example,
using CairoMakie
fig = Figure()
fig[1,1] = Axis(fig)
xs = range(0, 2π, 100)
lines!(xs, sin.(xs))
# Want something like the following:
# xticks!(fig, MultiplesTicks(5,π,"π"))
display(fig)
I have a function plot_data()
that plots data and returns the plotted Figure
. The figure has several Axis
’s, and different axes have different axes properties. I could pass multiple sets keyword arguments to plot_data()
to control the behaviors of the individual axes, but it would make the argument list of plot_data()
too long. If we can access the axes of the figure returned from plot_data()
and change their properties, I won’t need to pass a bulky list of Axis
keyword arguments to plot_data()
.