-
Notifications
You must be signed in to change notification settings - Fork 2
2.5.4 plotHeatmap()
Shun Li edited this page Aug 13, 2024
·
4 revisions
Given an array (see plotTraces() for details), the function plots a heatmap for the traces.
Required inputs
-
traces: double, an array that stores all the traces of signal aligned to the event. Each row is each trial and column is each time point. -
t: double, an vector where each element stores to appropriate time (i.e. x-axis value) for plotting
Options
-
flipYAxis: logical, default isfalse; Iftrue, the direction of y axis will be flip (the trials number starts from the top and goes down).
There is no explicit output for this function. It will plot a heatmap at the current figure.
initializeFig(0.5,1)
[~,~] = plotHeatmap(waterLickIdx,timeRange,signal,bluePurpleRed(1,:),params,...
signalFs=finalFs,signalSystem=system);
plotHeatmap(traces,t);
plotEvent('Water',0);
xlabel('Time (s)'); ylabel('Trials');
