gnuplot:在xlabel下直接对齐键?

时间:2019-01-22 06:44:54

标签: gnuplot

我正在gnuplot中绘制多个变量。我想将关键点放在绘图下,并放在绘图区域上。

我当前的设置是:

set key outside
set key bottom center horizontal

这将使关键点在绘图的整个宽度上居中。我想在x轴的整个范围内将关键点居中;即将其与xlabel对齐。

这是否可能以自动化方式进行,还是需要进行调整?

编辑:这是我所有的错误。我曾问过gnuplot绘制一个不存在的文件,因此它的密钥是空的,但是它的空间仍然存在,并且引发了“对齐”问题;它与三个条目对齐,但不与可见的两个对齐。

1 个答案:

答案 0 :(得分:0)

根据您要寻找的布置和对齐方式... 还要检查help key以获得更多选项。

reset session

set multiplot layout 2,1 
set xlabel "This is the xlabel"

set key outside bottom center vertical
plot sin(x), cos(x), sin(-x), cos(-x)

set key outside bottom center horizontal
replot

unset multiplot

enter image description here