gnuplot:在右上角的框中包含模拟参数

gnuplot:在右上角的框中包含模拟参数,gnuplot,Gnuplot,我是gnuplot的新手。有人能告诉我如何在绘图右上角的方框中包含模拟参数吗?我希望参数框在用于显示实际曲线的图例下方可见 我只想包括表单的三个参数: "GraphConnectivity: 0.2" "Query: 0.2" "Content: 0.2" 应该在图例下方的框中可见。要添加标签,您需要设置标签 e、 g 你需要和XVAL和YVAL玩一玩,让标签显示在你想要的地方 或者,可以使用3个“设置标签”命令: set label "GraphConnectivity: 0.2" at s

我是gnuplot的新手。有人能告诉我如何在绘图右上角的方框中包含模拟参数吗?我希望参数框在用于显示实际曲线的图例下方可见

我只想包括表单的三个参数:

"GraphConnectivity: 0.2"
"Query: 0.2"
"Content: 0.2"

应该在图例下方的框中可见。

要添加标签,您需要
设置标签

e、 g

你需要和XVAL和YVAL玩一玩,让标签显示在你想要的地方

或者,可以使用3个“设置标签”命令:

set label "GraphConnectivity: 0.2" at screen XVAL, screen YVAL
set label "Query: 0.2" at screen XVAL, screen YVAL offset character 0,-1
set label "Content: 0.2" at screen XVAL, screen YVAL offset character 0,-2

要在标签周围放置一个框,可以使用无头箭头,也可以使用
设置对象矩形
命令

添加标签,您需要
设置标签

e、 g

你需要和XVAL和YVAL玩一玩,让标签显示在你想要的地方

或者,可以使用3个“设置标签”命令:

set label "GraphConnectivity: 0.2" at screen XVAL, screen YVAL
set label "Query: 0.2" at screen XVAL, screen YVAL offset character 0,-1
set label "Content: 0.2" at screen XVAL, screen YVAL offset character 0,-2
要在标签周围放置一个框,可以使用无头箭头,也可以使用
set object rectangle
命令将标签放置在框中的方法非常好(在gnuplot 4.2+中)

若要查看这将如何处理标签中的多行,请尝试将下面的行从链接复制并替换到示例中:

#
# Illustrate using character widths to put a box around a label
#

# each line of the label gets a separate variable here
label1 = "Label in"
label2 = "a box"
label3 = "rocks"
LABEL = label1."\n".label2."\n".label3
# this bit finds the longest part of the multi-line string
# to determine the box width
longlabel = (strlen(label1) > strlen(label2)) ? label1 : label2
longlabel = (strlen(longlabel) > strlen(label3)) ? longlabel : label3

# change 'char 2' below to reflect the number of lines in the label.
# you will also have to adjust the y-position of the rectangle manually
set obj 10 rect at -3,(-4-0.4) size char strlen(longlabel), char 3
set obj 10 fillstyle empty border -1 front
set label 10 at -3,-4 LABEL front center
在gnuplot 4.2+中,有一种很好的将标签放在盒子中的方法

若要查看这将如何处理标签中的多行,请尝试将下面的行从链接复制并替换到示例中:

#
# Illustrate using character widths to put a box around a label
#

# each line of the label gets a separate variable here
label1 = "Label in"
label2 = "a box"
label3 = "rocks"
LABEL = label1."\n".label2."\n".label3
# this bit finds the longest part of the multi-line string
# to determine the box width
longlabel = (strlen(label1) > strlen(label2)) ? label1 : label2
longlabel = (strlen(longlabel) > strlen(label3)) ? longlabel : label3

# change 'char 2' below to reflect the number of lines in the label.
# you will also have to adjust the y-position of the rectangle manually
set obj 10 rect at -3,(-4-0.4) size char strlen(longlabel), char 3
set obj 10 fillstyle empty border -1 front
set label 10 at -3,-4 LABEL front center