Fig. 3: Evolution of ferroelastic domains.

The evolution of ferroelastic domains under the variation of temperature and light for SA-NPh-(S), the scale bar is 200 μm. The red arrows point to crystals with ferroelastic domains. a–c Temperature-controlled process: a initial state in Phase I. b Heating into Phase II (erasing). c Cooling back into Phase I (rewriting). d–f Light-controlled process: d initial state in Phase I. e Phase III upon UV light irradiation of 365 nm (erasing). f Returning into Phase I upon visible light irradiation of 488 nm (rewriting).