# Plot, linewidth in legend

**URL:** <https://discourse.julialang.org/t/plot-linewidth-in-legend/57010>\
**Category:** Visualization\
**Tags:** plotting, pyplot\
**Created:** [March 12, 2021, 9:53am UTC](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010 "2021-03-12T09:53:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maajdl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maajdl/32/22838_2.png) [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Post date:** [March 12, 2021, 9:53am UTC](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010/1 "2021-03-12T09:53:21Z")

</div>

Hello

When I have several lines on a plot, the legend is hard to read.  
The linewidth used in the legend is thin even when it is thick in the plot.

Would it be possible to increase the linewidth used in a legend (to make the color easier to see)?  
Or would it be possible that the linewidth in the legend reflects the linewidth used in the series?

Thanks for some suggestions,

Michel

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [March 12, 2021, 10:42am UTC](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010/2 "2021-03-12T10:42:29Z")

</div>

See [Increase legend color dash thickness? - #10 by Ahmed\_Salih](https://discourse.julialang.org/t/increase-legend-color-dash-thickness/49179/10)

---

<div class="post-metadata">

**Author:** ![maajdl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maajdl/32/22838_2.png) [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Post date:** [March 12, 2021, 10:54am UTC](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010/3 "2021-03-12T10:54:32Z")

</div>

Any trick?  
Just to make the legend useable when I have more than 2 or 3 lines?  
Markers migh help a bit, but are almost uggly …  
Tks,  
Michel

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [August 23, 2022, 8:14pm UTC](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010/5 "2022-08-23T20:14:44Z")

</div>

[Linking one example](https://discourse.julialang.org/t/change-line-length-in-legend-with-plots/86219/2) using PyPlot.jl
