从 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 将产生带有方形点的蓝线