我有以下 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 lines ls 1
如何删除标签threshold
和水平虚线?
问候
最佳答案
标签和箭头会保留在每个后续绘图中,直到您明确删除它们,就像几乎所有 gnuplot 设置一样。
您可以通过 show label
/show arrow
找到它们的标识符号,并通过 unset
删除它们。
set label 5 at 1,1 "Labeltext" # Explicitly give the label an id number
plot x # Here's a label
unset label 5
plot x # And it's gone
您可以通过为箭头和标签提供 ID 号(上例中的 5
)来跟踪它们。
关于gnuplot - 如何删除脚本中下一个绘图的标签和箭头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50270580/