Plot, linewidth in legend

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

See Increase legend color dash thickness? - #10 by Ahmed_Salih

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

Using pyplot() backend:
Pyplot_legend_ticknesses

using Plots; pyplot()

f = [cos, sin, tan, exp, log, atan]
lw = [3, 2, 1, 1, 3, 2]    #line_width
ls = ["solid", "solid", "solid", "dashed", "dashed","dotted"] #line_style
x = 0.2 : 0.01: 1.2
fig, ax = PyPlot.plt.subplots()
[ax.plot(x, f.(x), lw=lw, ls=ls, label="$(f)") for (f,lw,ls) in zip(f,lw,ls)]
ax.legend(loc="upper left", fontsize=8)
ax.grid(linestyle=:dotted, color="gray")
PyPlot.plt.ylim(-2, 4)
PyPlot.plt.xlim(extrema(x))
fig.show()