@testing.requires_testing_data
@requires_mayavi
def test_plot_evoked_field():
 evoked = read_evokeds(evoked_fname, condition='Left Auditory', baseline=((-0.2), 0.0))
 evoked = pick_channels_evoked(evoked, evoked.ch_names[::10])
 for t in ['meg', None]:
  with warnings.catch_warnings(record=True):
   maps = make_field_map(evoked, trans_fname, subject='sample', subjects_dir=subjects_dir, n_jobs=1, ch_type=t)
  evoked.plot_field(maps, time=0.1)

@ testing . requires_testing_data @ requires_mayavi def test_plot_evoked_field ( ) : evoked = read_evokeds ( evoked_fname , condition = 'Left Auditory' , baseline = ( ( - 0.2 ) , 0.0 ) ) evoked = pick_channels_evoked ( evoked , evoked . ch_names [ : : 10 ] ) for t in [ 'meg' , None ] : with warnings . catch_warnings ( record = True ) : maps = make_field_map ( evoked , trans_fname , subject = 'sample' , subjects_dir = subjects_dir , n_jobs = 1 , ch_type = t ) evoked . plot_field ( maps , time = 0.1 )
test plotting evoked field .