A method, consisting of receiving respective electrocardiograph (ECG) signals from body-surface electrodes at respective locations in proximity to a heart of a subject. The ECG signals may be processed to generate respective signal parameters characteristic of positions of the body-surface electrodes with respect to the heart, and the respective locations may be adjusted so as to achieve a specified geometrical relationship between the body-surface electrodes and the heart in response to the respective signal parameters.