Unfortunately, I do not know a way to control the thickness of the lines in the key, since they correspond to the lines that are drawn. You can see what you can change by typing help set key
in gnuplot.
Using the multiplier, you can draw the plot lines first without a key, and then draw the key again for the "ghost lines". Here is an example of code that will do this:
set terminal png color size 800,600 set output 'plot.png' set multiplot unset key plot '../batteries/9v/carrefour.txt' w lp, \ '../batteries/9v/philips.txt' w lp, \ '../batteries/9v/sony.txt' w lp set key; unset tics; unset border; unset xlabel; unset ylabel plot [][0:1] 2 title 'Carrefour' lw 4, \ 2 title 'Philips' lw 4, \ 2 title 'Sony' lw 4
In the second command of the graph, function 2 (constant) is displayed with a range of y from 0 to 1, so it is not displayed.
source share