Gnuplot position 关键元素自定义位置
Gnuplot position key element custom position
您好,我对 gnuplot 如何定位关键元素有疑问。
如您所见,EdgeCast
和 EdCast-RTMP
标签重叠,而 Twitter-Generic
和 Yandex-1
之间有很多 space.
是否可以重新分配元素之间的space?
我尝试了几种解决方案,例如:
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
这样我就可以有更多的长标签space。
可能吗?
微调多组件图例结构的一种有点脏的方法是按以下方式调用 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。整个 "plot".
您好,我对 gnuplot 如何定位关键元素有疑问。
如您所见,EdgeCast
和 EdCast-RTMP
标签重叠,而 Twitter-Generic
和 Yandex-1
之间有很多 space.
是否可以重新分配元素之间的space?
我尝试了几种解决方案,例如:
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
这样我就可以有更多的长标签space。
可能吗?
微调多组件图例结构的一种有点脏的方法是按以下方式调用 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。整个 "plot".