vertical and horizontal histogram