I spend hours on how to achieve the old behavior from gnuplot 4.6 in 5.2
But no chance! So I feel inspired enough to ask my question ;-D
First the gnuplot backward compatibility claim!
Data:
1 3 hm
2 5 oh
3 0 nice
4 2 krr
First col is x, second y, and third the label of x.
I like to print all values but not all label on the x axis.
How to print every third label only is my question.
As long as I do not print xtic, all can be done easy.
But with ... problems are starting.
In 4.6 I achieved this by
file using 1:2 notitle ...
'' using 1:((int(column(1))%3)==1?-1.:0/0):xtic(stringcolumn(3)) notitle
Whenever the rest of x-value is one, plot a point out of the yrange, in my case -1 and plot the x label, otherwise produce an invalid value and nothing is plotted.
Works wonderful and is easy to modify. Expect you have hundreds of points. Easy going.
HOW TO DO THIS NOW IN GNUPLOT 5.2???
It plots any label value doesnt matter if a valid coordinate pair exists?
Happy for a solution to this.
Offtopic: I really like the gnuplot program it is a fantastic tool even if you sometimes need to find the trick. But the backward portability ... ups ;)