Static and dynamical phyllotaxis in a magnetic cactus.