Question: How to change the length or thickness of the line symbols in the legend box of a plot?

I noticed that in a legend with:

  1. Three elements
  2. linestyle = [solid, longdash, dash]
  3. thickness = [4, 4, 4]

The three different linestyles are distinguishable in the plots (of course, since the curves span the whole plot area) but indistinguishable in the legend box. Since the legend box is too narrow, the symbols for a solid line, a longdash line, and a dash line are equivalent, resulting in confusion regarding which element is associated to each linestyle. Note that I don't want to use three different colors to achieve that or change my font sizes

  1. How can I "show more" of the linestyle in the legend box? "Longer" line symbols in the legend box would allow to dinstinguish a solid from a longdash from a dash even when all three are quite thick.
  2. Alternatively, can I reduce the thickness of the line symbols in the legend box (leaving unaltered the thickness of the lines in the actual plot)? "Slimmer" line symbols in the legend box would allow to dinstinguish a solid from a longdash from a dash even when all three are quite short.
Please Wait...