eegyolk.display_helper module¶
Copyright 2022 Netherlands eScience Center and Utrecht University. Licensed under the Apache License, version 2.0. See LICENSE for details.
This file contains functions originally designed to help with displaying information.
- eegyolk.display_helper.make_ordinal(n)¶
Convert an integer into its ordinal representation:
make_ordinal(0) => '0th' make_ordinal(3) => '3rd' make_ordinal(122) => '122nd' make_ordinal(213) => '213th'
- eegyolk.display_helper.plot_ERP(epochs, condition, event_type, save_path='')¶
This function can be used for ERP plotting as done in the thesis of Floris Pauwels.
- eegyolk.display_helper.plot_array_as_evoked(array, channel_names, montage='standard_1020', frequency=512, baseline_start=-0.2, n_trials=60, ylim=None)¶
Plot an array as an evoked. Information like the sensor montage and the frequency are needed as input.
- eegyolk.display_helper.show_plot(x=None, y=None, title='', xlabel='', ylabel='', legend='', show=True)¶
Show plot with title and lables in 1 line.
- Args:
x: 1D numpy array
y: 1D numpy array
- eegyolk.display_helper.show_plot_advanced(x=None, y=None, title='', xlabel='', ylabel='', xlim=None, ylim=None, legend='', show=True, scatter=False, scatter_color=None)¶
Show plot with title and lables as done in the thesis project of Floris Pauwels.
- eegyolk.display_helper.show_raw_fragment(raw, channel_index, duration=1, start=0, average=False)¶
Shows a fragment of the raw EEG data from specified raw file and channel_index. start_time and duration are in seconds. An identical function is used in the thesis work of Floris Pauwels with the name plot_raw_fragment