在值的第一个实例处放置一个图标?

Place an icon on line at first instance of a value?

我有一个 gnuplot 脚本如下:

#!/usr/bin/gnuplot -persist

set terminal x11
line = "./test.csv"
plot line using 1 with lines linecolor 1 linewidth 3 title "Line"

还有我的 test.csv 文件:

0.92
0.74
0.65
0.59
0.48
0.46
0.24
0.11
0.09
0.05
0.03
0.01

这会生成如下图:

我想查看线在 0.1 以下的点。有没有办法通过线上的某个图标或垂直虚线来标记此位置。如下所示:

为此,x=9处是第一次y<0.1,所以标记出来以说明本例

gnuplot 中有什么东西可以做到这一点吗?我知道使用线条样式我可以将我的线条表示为星号或+之类的符号;我很想在特定时间点其中之一。

一轮版本 pointsize variable:

$line <<EOD
0.92
0.74
0.65
0.59
0.48
0.46
0.24
0.11
0.09
0.05
0.03
0.01
EOD

hit=0; plot $line using 0:1:(hit=hit+(<0.1), hit==1?3:0) with lp ps var pt 7 lw 3 title "Line"

要获得条形图,可以使用第二个 errorbar 图。

hit=0; plot $line using 1 w l lw 3 title "Line",\
           "" using 0:(hit=hit+(<0.1), /(hit==1)):(0):(1) w e  lc 1 pt 7 ps 3 title ""