Gnuplot网格具有备用线条样式

Raj*_*Raj 5 gnuplot

使用Gnuplot我绘制如下图 -

现在,正如您在图像中看到的那样,线之间难以识别其末端的块.所以我想用不同的颜色或样式交替着色网格.

我现在用来为网格着色的代码是 -

set style line 12 lc rgb '#808080' lt 0 lw 1
set grid back ls 12
Run Code Online (Sandbox Code Playgroud)

但是,我无法找到任何方法来获取网格并将其交替设置为另一种样式.在Gnuplot甚至可能吗?

我的意思是,是否可以在gnuplot的网格中为主要和次要抽搐设置不同的线条样式?

谢谢 !

在此输入图像描述

Chr*_*oph 10

是的,您可以为次要和主要网格线使用不同的样式,请参阅help grid:

set style line 12 lc rgb 'blue' lt 1 lw 2
set style line 13 lc rgb 'red' lt 1 lw 1
set grid xtics ytics mxtics mytics ls 12, ls 13
set mxtics 4
set mytics 4
plot x
Run Code Online (Sandbox Code Playgroud)

4.6.3的结果是:

在此输入图像描述

  • 无论如何,你有没有分解 gnuplot 代码并为刚刚进入 GNUPlotting 的人们解释一下?‘set style line 12’中的12像什么? (3认同)