gnuplot 使用线条时突出显示点

dar*_*sys 3 plot gnuplot highlight

我想使用 gnuplot 绘制 4 个点,但要使用线条。问题是,我找不到如何在绘制的线上突出显示这 4 个点。我希望情节是通过点的一条线,但这些点也有明确的标记。由excel生成的示例。我所知道的要么只画点,要么只画一条没有高亮点的线。在 gnuplot 中可以组合吗?

Shr*_*han 8

从 gnuplot docs 中,将样式定义为:

set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt 5 ps 1.5   # blue
set style line 2 lc rgb '#dd181f' lt 1 lw 2 pt 7 ps 1.5   # red
...
Run Code Online (Sandbox Code Playgroud)

和情节:

plot ... w lp ls 1    # Use line style 1
Run Code Online (Sandbox Code Playgroud)

在哪里:

lc - linecolor
lt - linetype
lw - linewidth
pt - pointtype
ps - pointsize
w  - with
lp - linespoints
ls - linestyle
Run Code Online (Sandbox Code Playgroud)

或一行简写:

plot ... w lp lc rgb 'cyan' lw 2 pt 5
Run Code Online (Sandbox Code Playgroud)

线条样式 1 将产生带有方形点的蓝线