gnuplot - 如何在多行中显示 GNUPLOT key

标签 gnuplot legend

如何在多行甚至列中显示 gnuplot 标题。事实上,我有 8 个标题,而我只是使用了这个:

set key below

因此每个都显示在单独的行中。所以图形变得拥挤。

最佳答案

试试这个:

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

关于gnuplot - 如何在多行中显示 GNUPLOT key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10336273/

相关文章:

r - 在 R 中稍微向上推图例

python-3.x - 在 plotly 中为子图共享相同的图例

在 gnuplot 中的列上绘制具有条件的数据集

plot - 填充gnuplot中两条曲线之间的区域

c - 如何在 C 中使用 popen 传递多个命令?

python - 如何使用 matplotlib 使两个标记在图例中共享相同的标签?

gnuplot - 如何在 gnuplot 中绘制多条线的平均值和标准差

Gnuplot网格格式Xtics Mxtics

graph - Stata 图表中没有水平线且没有图例边框

r - 为 ggplot 气泡图创建同心圆图例