def test_plot_arrowmap(): """Test arrowmap plotting.""" evoked = read_evokeds(evoked_fname, 'Left Auditory', baseline=(None, 0)) with pytest.raises(ValueError, match='Multiple channel types'): plot_arrowmap(evoked.data[:, 0], evoked.info) evoked_eeg = evoked.copy().pick_types(meg=False, eeg=True) with pytest.raises(ValueError, match='Multiple channel types'): plot_arrowmap(evoked_eeg.data[:, 0], evoked.info) evoked_mag = evoked.copy().pick_types(meg='mag') evoked_grad = evoked.copy().pick_types(meg='grad') plot_arrowmap(evoked_mag.data[:, 0], evoked_mag.info) plot_arrowmap(evoked_grad.data[:, 0], evoked_grad.info, info_to=evoked_mag.info)