Meaning of 'x->a' in plotting

This is from some script:

plot!(x->se.mean, df.steps[steps_equilibrate+1:end], ribbon=se.err, label="shift mean")

What does the syntax ‘->’ mean here?

this defines am anonymous function. it’s the same as if you defined

f(x)=se.mean
plot!(f, df.steps[steps_equilibrate+1:end], ribbon=se.err, label="shift mean")
4 Likes