Observation of magnetically controllable spatial pattern formation and symmetry breaking