Multivariate Pattern Analysis in Python |
Basic ERP (here ERP = Event Related Plot ;-)) plotting
Can be used for plotting not only ERP but any event-locked data
Plot single ERP on existing canvas
Parameters: |
|
---|---|
Return type: | array |
Returns: | Mean ERP timeseries. |
Plot multiple ERPs on a new figure.
Parameters: |
|
---|
kwargs = {'SR' : eeg.SR, 'pre_mean' : 0.2}
fig = plotERPs((('60db', 'b', eeg.erp_onsets['60db']),
('80db', 'r', eeg.erp_onsets['80db'])),
data[:, eeg.sensor_mapping['Cz']],
ax=fig.add_subplot(1,1,1,frame_on=False), pre=0.2,
post=0.6, **kwargs)
or
fig = plotERPs((('60db', 'b', eeg.erp_onsets['60db']),
{'color': 'r',
'onsets': eeg.erp_onsets['80db'],
'data' : data[:, eeg.sensor_mapping['Cz']]}
),
data[:, eeg.sensor_mapping['Cz']],
ax=fig.add_subplot(1,1,1,frame_on=False), pre=0.2,
post=0.6, **kwargs)
Returns : | current fig handler |
---|