An X-ray imaging technique could help scientists understand — and ultimately control — the magnetic structure of promising materials for the development of electronic devices that exploit electron spin.