Cross-section through the magnet axis, computed from current-loop physics.
Drag a magnet to move it. Drag its ends or scroll over it to rotate. Drag the compass to probe the field.