正如您所看到的EdgeCast
和EdCast-RTMP
标签在Twitter-Generic
和Yandex-1
之间重叠时,会有很多空间。
是否可以重新分配元素之间的空间?
我尝试了几种解决方案:
set key font ",26" width -4 at graph 0.45, graph 1.2 center maxrows 3
set key samplen 1.8
但他们所有人都移动了所有钥匙而不仅仅是我感兴趣的钥匙。
不幸的是,我认为这是不可能的,但最好的结果是我希望得到如下关键字:
key1 key2 key3
key4 key5 key6
.... key7 key8
通过这种方式,我可以为长标签留出更多空间。
有可能吗?
答案 0 :(得分:2)
如何微调多组件图例结构的一种稍微肮脏的方法是以下列方式调用multiplot
:
set multiplot
#fix the "plot window", i.e., the effective area of the plot itself
#so that its position is the same in all the subsequent plot(s)
set tmargin at screen 0.8
set bmargin at screen 0.1
set lmargin at screen 0.1
set rmargin at screen 0.8
# set the desired tics, axes, etc.
#specify an absolute position for the first part of the legend
set key ... at screen 0.1,0.9
# plot first, say, 3 lines
#unset all tics, border, etc. so that it is not generated again
#in the subsequent plot command(s) below
unset xtics;unset ytics
unset xlabel;unset ylabel
unset border
#specify position of the second part of the legend
set key ... at screen 0.5,0.9
#plot other 3 lines
此处,screen
单位的范围从0.
到1.
,并表示相对位置w.r.t.整个“情节”。