Default positions are: top, bottom, left, right, etc – but no “middle”. When I use
set key top
The legend is placed at top right, by default. How to position it at “top middle”?
Besides, when I add a frame to the legend box, can I control the width of the box? I need this because sometimes the frame cut the text in the legend.
Instead of middle, use
center. You can find this instruction in gnuplot by usinghelpAll the other answers are also provided in this help.