Allow arbitrary number of x-labels on line plot

When there are thousands of points in a line plot.
It is sensible to show only some of the ticks for x labels.