%% 30 events
anchovy_1_3_2 = [14.355 15.3346 15.1901];
anchovy_5_4_6 = [13.3808 19.211 16.9276];
xeko_2_3_4 = [13.9719 16.1194 12.1536];
zeno_7_10_9 = [11.1427 19.3525 16.5625];
venus_20628_20629 = [0 11.1388 10.3868];
worm_19308_19309 = [0 16.1788 11.0206];


%% 50 events
anchovy_1_3_2 = [14.6664 14.8781 16.8316];
anchovy_5_4_6 = [13.3808 19.211 16.9276];
xeko_2_3_4 = [14.4863 17.2531 12.1536];
zeno_7_10_9 = [11.1427 19.3525 17.3464];
venus_20628_20629 = [0 11.6456 10.201];
worm_19308_19309 = [0 16.1788 11.2196];


%% bar graph norm to TTX

%dat = [anchovy_1_2_3; anchovy_5_4_6; xeko_2_3_4; zeno_7_10_9; venus_20628_20629; worm_19308_19309];
%dat_plot = dat
dat = [anchovy_1_3_2/anchovy_1_3_2(2);...
    anchovy_5_4_6/anchovy_5_4_6(2);...
    xeko_2_3_4/xeko_2_3_4(2);...
    zeno_7_10_9/zeno_7_10_9(2);...
    venus_20628_20629/venus_20628_20629(2);
    worm_19308_19309/worm_19308_19309(2)];

hold off;
% plot([0 7],[1 1],'--k','LineWidth',2);
% hold on;
bar(dat); legend('control','TTX','TTX+CTZ');
set(gca,'XTick',[0:1:7],'XTickLabel',{'','anchovy132','anchovy546','xeko','zeno','venus','worm'});
axis([0 7 0 1.3]);

xlabel('culture set','FontSize',16);
ylabel(['mEPSC amplitude',10,'(percent of TTX)'],'FontSize',16);
%gtext('cells with >=50 events')
gtext('cells with >=30 events')

%% bar graph norm to ctrl

dat = [anchovy_1_3_2/anchovy_1_3_2(1);...
    anchovy_5_4_6/anchovy_5_4_6(1);...
    xeko_2_3_4/xeko_2_3_4(1);...
    zeno_7_10_9/zeno_7_10_9(1);...
    venus_20628_20629/venus_20628_20629(1);
    worm_19308_19309/worm_19308_19309(1)];

hold off;
% plot([0 7],[1 1],'--k','LineWidth',2);
% hold on;
bar(dat); legend('control','TTX','TTX+CTZ');
set(gca,'XTick',[0:1:7],'XTickLabel',{'','anchovy132','anchovy546','xeko','zeno','venus','worm'});
axis([0 7 0 1.3]);

xlabel('culture set','FontSize',16);
ylabel(['mEPSC amplitude',10,'(percent of control)'],'FontSize',16);
gtext('cells with >=50 events')
%gtext('cells with >=30 events')

