Better handling of hidden/visible tick labels.