In one aspect, in general, a method includes receiving, at a computer system, data from an electromagnetic sensor, determining, at the computer system, based on the received data, a location of a tip of a guidewire inserted in a patient, and causing, by the computer system, an indication of the determined location of the tip of the guidewire to be displayed in an overlay image representing at least part of the guidewire.