How to display GNUPLOT keys in multiple lines

How can I display gnuplot headers in multiple rows or even columns. In fact, I have 8 titles, and I used this:

set key below

Thus, each of them is displayed on a separate line. Thus, the figure becomes overloaded.

+3
source share
1 answer

Try the following:

set terminal postscript enhanced color
set output 'plot.eps'

set key below
plot sin(x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(2*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(3*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(4*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(5*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(6*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(7*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(8*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(9*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(10*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(11*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(12*x) title "{/Arial=8 LongFunctionKeyName}", \
 sin(13*x) title "{/Arial=8 LongFunctionKeyName}"

This is the output in gnuplot 4.6: enter image description here

+5
source

All Articles