How to designate "xtics" in every second?

Hi I am drawing a graph with Gnuplot and using the command below.

set xrange [0:20]
set xtics 0,0.5

Schedule and scale are correct as I wanted. But I would like to outline only integer points (for example, 0,1,2,3,4 ..., 20), but I still want to keep ticks every 0.5 intervals.

enter image description here

How can I command for this? thanks

+4
source share
1 answer

Minor ticks are set using set mxtics:

set xrange [0:20]
set xtics 0,1
set mxtics 2

This shows one minor tick between two marked main ticks.

If small and main ticks should be the same size, use

set xtics scale 1,1
+4
source

Source: https://habr.com/ru/post/1627860/


All Articles