Trying to set x tickmarks smartly