GNUPlot: change mark labels

I used the following statement to get the GNUPlot graph for me:

plot "force.dat" using 1:2 title "Detroit" with lines, \
     "force.dat" u 1:3 t "US Avergae" w linepoints

and "force.dat" looks like

2005  0   0
2006 104 51
2007 202 101

He draws a good schedule for me. However, I do not like the X axis because it is labeled 2005, 2005.5, 2006, 2006.5, 2007, etc. However, these are identifiers of the year, I only need 2005, 2006, 2007, etc., How can I get rid of labels 2005.5, 2006.5, etc. On my GNUPlot chart?

Thanks so much for your ideas.

+3
source share
1 answer

gnuplot 4.1 , using 2:xticlabels(1), . , , , set xtics 1 plot.

+3

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


All Articles