using Plots
plot(1:1:5, 1:1:5, linewidth=1)
plot!(1:1:5, 1:2:10, linewidth=5)
Is it possible to make the legend line width match the line width in the plot? I couldn't find anything in the documentation unfortunately.

Try this out:
using Plots
plot(1:1:5, 1:1:5, linewidth=1)
plot!(1:1:5, 1:2:10, linewidth=5, thickness_scaling = 1)
The resulting output would be the following:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With