Discography is a test for people who are considering surgery for their back pain. Doctors also use it when they want to do tests before deciding on a treatment. During this test, a dye is injected into the disk that’s thought to be causing the pain. The dye outlines damaged areas on X-rays.