Gnuplot 如何删除脚本中下一个绘图的标签和箭头
我有以下Gnuplot脚本:Gnuplot 如何删除脚本中下一个绘图的标签和箭头,gnuplot,Gnuplot,我有以下Gnuplot脚本: set label "Threshold" at first 1.03, first -15 set arrow from graph 0,first -13 to graph 1, first -13 nohead lt 0 lw 5 plot [1:12][] pot_t(x) t "up" w lines ls 1 绘制此图: 在-13处有一条水平线 如果我在脚本中添加第二个绘图 plot [5:20][] pot_t(x) t "up" w
set label "Threshold" at first 1.03, first -15
set arrow from graph 0,first -13 to graph 1, first -13 nohead lt 0 lw 5
plot [1:12][] pot_t(x) t "up" w lines ls 1
绘制此图:
在-13处有一条水平线
如果我在脚本中添加第二个绘图
plot [5:20][] pot_t(x) t "up" w lines ls 1
水平线箭头
和标签仍在那里
如何删除标签阈值和水平虚线
“注意”标签和箭头将保留在后续的每个绘图中,直到您明确删除它们,就像几乎所有的gnuplot设置一样
您可以通过“显示标签”/“显示箭头”找到每个标签的标识号,并通过“取消设置”将其删除
标签和箭头会一直保留在后续的每个绘图中,直到您明确删除它们,就像几乎所有的gnuplot设置一样
您可以通过“显示标签”/“显示箭头”找到每个标签的标识号,并通过“取消设置”将其删除
您是否在plot…
语句之前尝试了unset label
和unset arrow
?请删除脚本中所有不必要的内容以便发布。最少的例子!您是否在plot…
语句之前尝试了unset label
和unset arrow
?请删除脚本中所有不必要的内容以便发布。最少的例子!非常感谢。我知道这是一个简单的问题,但我在尝试没有号码的unset,结果不起作用。至少在gnuplot 5.2pl3上,取消设置标签不会删除所有标签。你有一个非常旧的版本在工作吗?我没有使用unset
,我是wirttingset no label
。命令不正确。@pablo嗯,帮助设置标签
会告诉您需要知道的一切。;-)非常感谢。我知道这是一个简单的问题,但我在尝试没有号码的unset,结果不起作用。至少在gnuplot 5.2pl3上,取消设置标签不会删除所有标签。你有一个非常旧的版本在工作吗?我没有使用unset
,我是wirttingset no label
。命令不正确。@pablo嗯,帮助设置标签
会告诉您需要知道的一切。;-)
set label 5 at 1,1 "Labeltext" # explicitly give the label an id
plot x # here's a label
unset label 5
plot x # and it's gone