cortex-lab / Rigbox

A MATLAB toolbox for running behavioral neuroscience experiments and managing data
GNU General Public License v3.0
33 stars 16 forks source link

Generic plots for Signals ExpPanel #287

Open k1o0 opened 4 years ago

k1o0 commented 4 years ago

Is your feature request related to a problem? Please describe. Add a way to plot events in a generic way. Some way to provide a function that plots specific events in the ExpPanel. The plots of sig.test.plot and sig.test.timeplot are two such examples.

Describe the solution you'd like Extend eui.SignalsExpPanel to one that takes a plot function as an input arg. This plot function can then plot the events. The expPanelFun would then be an anonymous function that calls the constructor with some inputs. This could also be done with a config function but not that ExpPanel follows the factory pattern.

Describe alternatives you've considered The other solution is to better guide users to write their own ExpPanel subclasses. This is much simpler now the code has been refactored.

Additional context We had a meeting and people requested this.