# Adjusting markers in legend

**URL:** https://discourse.julialang.org/t/adjusting-markers-in-legend/38042
**Category:** Visualization
**Created:** [April 22, 2020, 7:40pm UTC](https://discourse.julialang.org/t/adjusting-markers-in-legend/38042 "2020-04-22T19:40:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jamblejoe](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)
#### Post date: [April 22, 2020, 7:40pm UTC](https://discourse.julialang.org/t/adjusting-markers-in-legend/38042/1 "2020-04-22T19:40:51Z")

</div>

Hi,  
I would like to adjust marker settings in the legend, e.g. size and strokewidth, ideally with the pyplot backend. In the following minimal working example I would like the markers in the legend to be the same as in the plot:

```julia
plot([1,2,3],
    marker=:circle,
    markersize=20,
    markerstrokewidth=0,
    linetype=:scatter,
    legend=true,
)

```

This looks like  
 ![grafik](https://global.discourse-cdn.com/julialang/original/3X/8/b/8b55369760f6a67f11fdbc19a7c00605b4e648c4.png)  
in `Plots v1.0.11`. Is this even possible with the current version of `Plots.jl`?

Btw, this question was not answered here

- [Plot, pyplot() - marker size inside the legend](https://discourse.julialang.org/t/plot-pyplot-marker-size-inside-the-legend/30454)  
[Changing size of markers in legend with Plots](https://discourse.julialang.org/t/changing-size-of-markers-in-legend-with-plots/15520)
- [How to adjust the size of markers in legend box?](https://discourse.julialang.org/t/how-to-adjust-the-size-of-markers-in-legend-box/9271)  
and just a couple of days ago here
- [Modifying legend markersize/linelength of a Plots/PyPlot plot after creation](https://discourse.julialang.org/t/modifying-legend-markersize-linelength-of-a-plots-pyplot-plot-after-creation/36723)

Thanks in advance to your answers!

---

<div class="post-metadata">

### Author: ![jamblejoe](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)
#### Post date: [April 22, 2020, 9:56pm UTC](https://discourse.julialang.org/t/adjusting-markers-in-legend/38042/2 "2020-04-22T21:56:45Z")

</div>

I just saw that this is fixed in `Plots v1.0.13`. The marker stroke width is now the same in the legend as in the plot.

---

<div class="post-metadata">

### Author: ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)
#### Post date: [September 3, 2020, 9:06am UTC](https://discourse.julialang.org/t/adjusting-markers-in-legend/38042/3 "2020-09-03T09:06:38Z")

</div>

Hi,  
I don’t know what I miss but with Plots v1.6.2  
and pyplot() backend I have different size of marker in plot and legend : ![this](https://global.discourse-cdn.com/julialang/original/3X/d/9/d9dea24d3f4ae9015a8054af07626f4c1e607331.png)  
Any hints ?

---

<div class="post-metadata">

### Author: ![jamblejoe](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)
#### Post date: [September 15, 2020, 11:03am UTC](https://discourse.julialang.org/t/adjusting-markers-in-legend/38042/4 "2020-09-15T11:03:17Z")

</div>

Could you file an issue with a minimal working example at [https://github.com/JuliaPlots/Plots.jl](https://github.com/JuliaPlots/Plots.jl) ?

---

<div class="post-metadata">

### Author: ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)
#### Post date: [September 15, 2020, 11:40am UTC](https://discourse.julialang.org/t/adjusting-markers-in-legend/38042/5 "2020-09-15T11:40:02Z")

</div>

Hi,  
I did fill and issue here [https://github.com/JuliaPlots/Plots.jl/issues/2951](https://github.com/JuliaPlots/Plots.jl/issues/2951)  
I don’t fully understood the redirection of it since it also happen with pyplot backend.
