Heat Treatment Based on Diagrams