A medical system includes a sensor location module, a first module, and a second module. The sensor location module determines a location of a magnetic field sensor within a magnetic field. The first module determines an acceleration of the magnetic field sensor. The second module indicates a modified location of the magnetic field sensor in an image of a medical patient based on the acceleration and one or more previously determined locations.