如何在多行中显示GNUPLOT键

时间:2012-04-26 15:12:11

标签: gnuplot legend

如何在多行甚至列中显示gnuplot标题。事实上,我有8个头衔,而且我用这个:

set key below

所以每个都显示在一个单独的行中。所以这个数字变得拥挤。

1 个答案:

答案 0 :(得分:5)

试试这个:

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}"

这是gnuplot 4.6中的输出: enter image description here