How to get plot parameters?

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.