It also displays small texts and mytics, but with the same format as the main ticks. And this is a problem when you want to distinguish them. Your decision with arrows did the trick, but it was easier for me to first draw secondary ticks and rewrite them with arrows for the main ones. Tanks.
set style line 100 lt 2 lc rgb "blue" lw 1
set style line 101 lt 1 lc rgb "gray" lw 1
set xrange [0:1]
set mxtics 10
set yrange [0:1]
set mytics 5
set grid mxtics mytics ls 101
dx=0.2
set for [i=1:5] arrow from graph i*dx,graph 0 to graph i*dx,graph 1 nohead front ls 100
dy=0.2
set for [i=1:5] arrow from graph 0,graph i*dy to graph 1,graph i*dy nohead front ls 100
plot sin(x)
ripat source
share