A method of determining an optimal location for implanting a pacemaker electrode
includes the steps of pacing a heart from a first location and generating a first
map of the heart associated with pacing at the first location. The heart is paced
from a second location and a second map is generated of the heart associated with
pacing at the second location. The first and second maps are compared in order
to diagnose the effect of the pacing and an optimal location for implanting the
pacemaker electrode based on the comparison of the maps is selected.