mee mee
mee mee

Reputation: 557

How to label "xtics" at every second points?

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

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

The graph and scale are correct as I wanted. But I would like to label only integer points (e.g. 0,1,2,3,4...,20) but I still want to keep tics at every 0.5 interval.

enter image description here

How can I command for that? thanks

Upvotes: 6

Views: 5774

Answers (1)

Christoph
Christoph

Reputation: 48440

Minor tics are set with set mxtics:

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

This plots a single minor tic between two labelled major tics.

If minor and major tics should have the same size use

set xtics scale 1,1

Upvotes: 6

Related Questions