A method, including: measuring first positions of a probe fixed at a first point in a body of a patient over at least a portion of a respiration cycle of the patient, and formulating respective indicators of a respiration state of the patient at the first positions. The method further includes generating a functional relationship between the first positions and the respective indicators and extracting parameters from the functional relationship. The method also includes moving the probe to a second point of the body, measuring second positions of the probe at the second point during a subsequent respiration cycle of the patient, and applying the parameters to the second positions so as to compensate for respiratory motion of the patient at the second point.