How to get plot parameters?

We have the plot. Is there a way to get (lookup) plot parameters?

Why do I want it? My goal is to create a master legend for subplots. So I need the legend labels to create an empty plot with legend only and I’d like to access the existing plot to get those labels.

I’m not completely sure what you need, but maybe this will help:

julia> p = plot(sin, label="Sine function")

julia> p.series_list[1].plotattributes[:label]
"Sine function"

The legend labels are not attributes of the plot, but of the various series inside it, as you can see from the above.