In Mira, the highest luminosity occurs close to the time when the star is hottest and smallest. The visual magnitude is determined both by the luminosity and by the proportion of the radiation that occurs at visual wavelengths. Only a small proportion of the radiation is emitted at visual wavelengths and this proportion is very strongly influenced by the temperature (Planck's law). Combined with the overall luminosity changes, this creates the very big visual magnitude variation with the maximum occurring when the temperature is high.