Phase Diagram
Essentially to indertsand it fully, draw a phase diagram and look at critical points of temp, pressure and air density at varying altitudes. From your viewing experiences at various altitudes this should not be difficult; keep in mind that at certain critical temps and humidity levels, you will get varying contrail properties.