From this diagram we can see that the radiating of the stars doesnt depend only on the stars temperature. There are changes in the stars nuclei right up to the end of their life. Therefore as the stars change their luminosity and temperature. So they change their place in the diagram.

