This illustration is showing all the attachments of the muscles near the hip joint and under the GM. Notice the Piriformis is webbed in with other muscles that look almost the same. These other muscles are part of the 6 lateral rotators of the hip.