为同一轴上的抽动设置不同的颜色

Set different Color for Tics on SAME Axes

是否可以在同一轴上使用不同颜色或样式的抽动图。

tics:0,1,1.5,2,我想要 02 彩色 redbold

非常适合 multiplots,其中有关于相同测量值的图,并且您想在不同的图中标记 y 或 x 范围而不会使它过载太多。我现在的替代方案是在 y 轴上明确写下范围,但对于我的问题的解决方案会更顺畅。我检查了 mxtics,但根据我的经验,无法为 majorminortics 设置不同的颜色。但也许我错过了什么。

这是我在评论中的意思:

set style arrow 1 nohead linecolor rgb "red" linewidth 2
set xtics pi format "%.0P"
set arrow 1 from -1.5*pi,-.38 to -1.5*pi,-.4 as 1
set arrow 2 from 1.5*pi,-.38 to 1.5*pi,-.4 as 1
plot [-4*pi:4*pi] sin(x)/x

产量