====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| analysis:course-w16:week16 [2016/02/29 19:13] mvdm | analysis:course-w16:week16 [2018/04/17 15:20] (current) | ||
|---|---|---|---|
| Line 54: | Line 54: | ||
| === Setup and data loading === | === Setup and data loading === | ||
| - | First, make sure you do a ''git pull'' as usual, and get the data. We'll be using session ''R064-2015-04-22''. You'll also need to include the ''tasks\Alyssa-Tmaze'' and ''tasks\ReplayAnalysis'' folders in your path. | + | First, make sure you do a ''git pull'' as usual, and get the data. We'll be using session ''R064-2015-04-22''. You'll also need to include the ''tasks\Alyssa-Tmaze'' and ''tasks\Replay_Analysis'' folders in your path. | 
| Then, we load the data: | Then, we load the data: | ||
| Line 357: | Line 357: | ||
| ylabels = {{'Proportion of';'SWRs active'},{'Cell pair'; 'joint probability'},{'SWR coactivation'; 'Z-score'}}; | ylabels = {{'Proportion of';'SWRs active'},{'Cell pair'; 'joint probability'},{'SWR coactivation'; 'Z-score'}}; | ||
| arms = {'L','R'}; | arms = {'L','R'}; | ||
| + | colors = flipud(linspecer(2)); | ||
| location = [1 2.5]; | location = [1 2.5]; | ||
| Line 365: | Line 366: | ||
|  |  | ||
| h(iP) = subplot(1,3,iP); | h(iP) = subplot(1,3,iP); | ||
| - | for iBar = 1:2 | + | for iBar = 1:length(arms) | 
|  |  | ||
| bar(location(iBar),p_data(iP,iBar),'FaceColor',colors(iBar,:),'EdgeColor','none') | bar(location(iBar),p_data(iP,iBar),'FaceColor',colors(iBar,:),'EdgeColor','none') | ||