Just as droplets of water in the atmosphere can separate out the colours of the sunlight into a rainbow, or a prism can split up white light into a range of colours, a spectrograph can disperse the light emitted from an object according to wavelength.

The figures below show examples of spectra of optical light. The x-axis runs from short, blue wavelengths on the left to long, red wavelengths on the right. The y-axis indicates the amount of light emitted at each wavelength - the higher the level of the signal, the more light is present. In each case, the top plot is a line plot showing intensity versus wavelength, while the lower plot represents the spectrum as it would appear at the telescope.

Spectra can be divided into three broad categories.