我们如何设置刻度线的宽度?

How can we set the width of the ticks?

在gnuplot中,我们可以设置刻度刻度,但这只会影响刻度的长度。 我们如何改变刻度线的宽度? 我在 xtics 或 ytics 的标签中没有看到任何可以设置适当宽度的选项。

勾选help border。我的猜测是 tic 宽度可能无法独立于边框设置。好吧,您可以玩多个具有不同边框和相互重叠的图。检查 help multiplot.

代码:

### set tic width
reset session

set border lw 3
set xtics scale 4
set ytics scale 1

plot x
### end of code

结果:

正如 theozh 所说,抽动是使用 'border' 线型绘制的。如有必要,我想您可以关闭边框,将边框线型设置为您想要的任何图形,然后使用图形大小的矩形替换边框。

set border lc "black" lw 0.25  # thin lines for the tics
set border 0                   # don't draw the normal border
set tics scale 3.0             # longer than usual tics
set obj 1 rectangle from graph 0,0 to graph 1,1
set obj 1 lc "black" lw 2.5    # heavy line for the "border"
set obj 1 fillstyle empty
set grid x y

plot sinc(x)