Collect trace indices meeting condition

A one-liner would be

restyle!(fig, findall(x -> endswith(String(x[:name]), "_calc"), fig.plot.data), line_dash="dash")

Above the first argument to findall is an anonymous function.

3 Likes