Nine Palaces and Eight Diagrams