gpt4 book ai didi

具有交替线条样式的 Gnuplot 网格

转载 作者:行者123 更新时间:2023-12-04 17:21:59 27 4
gpt4 key购买 nike

使用 Gnuplot 我绘制了下图 -

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

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

set style line 12 lc rgb '#808080' lt 0 lw 1
set grid back ls 12

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

我的意思是,gnuplot 网格中的主要和次要抽动是否可以有不同的线条样式?

谢谢 !

enter image description here

最佳答案

是的,您可以为次要和主要网格线使用不同的样式,请参阅 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

4.6.3 的结果是:

enter image description here

关于具有交替线条样式的 Gnuplot 网格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21532529/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com