Visualization of a magnetic field