# How to get plot parameters?

**URL:** https://discourse.julialang.org/t/how-to-get-plot-parameters/70440
**Category:** Visualization
**Tags:** plots
**Created:** [October 26, 2021, 11:57pm UTC](https://discourse.julialang.org/t/how-to-get-plot-parameters/70440 "2021-10-26T23:57:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pjgorski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjgorski/32/4802_2.png) [@pjgorski](https://discourse.julialang.org/u/pjgorski)
#### Post date: [October 26, 2021, 11:57pm UTC](https://discourse.julialang.org/t/how-to-get-plot-parameters/70440/1 "2021-10-26T23:57:25Z")

</div>

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](https://discourse.julialang.org/t/subplots-in-plots-jl-with-separate-legend/1968/10). 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.

---

<div class="post-metadata">

### Author: ![LeePhillips](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leephillips/32/205514_2.png) [@LeePhillips](https://discourse.julialang.org/u/LeePhillips)
#### Post date: [October 27, 2021, 12:13am UTC](https://discourse.julialang.org/t/how-to-get-plot-parameters/70440/2 "2021-10-27T00:13:10Z")

</div>

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

```julia
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.
