Field lines of a magnetic dipole, traced by numerical integration of the B field direction. Click on the canvas to place a second magnet. Toggle between bar magnet and current loop configurations.