You can use the set colorbox :
set colorbox vertical user origin .02, .1 size .04,.8
If you want it anywhere except the default position, you need to manually set the coordinates. For more information you can enter
help set
in gnuplot, and all parameters starting with cb and colorbox refer to the thin points of colorbox.
source share