

%% cnqx avg by cell

hold off;
x = randn/100;
errorbar(0+x,mean(buster2),std(buster2)/length(buster2),'Color',[1 0 0],'LineWidth',3); hold on;
errorbar(1+x,mean(buster1),std(buster1)/length(buster1),'Color',[1 0 0],'LineWidth',3);
plot([0 1]+x+x,[mean(buster2),mean(buster1)],'-o','Color',[1 0 0],'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(nacho361),std(nacho361)/length(nacho361),'Color',[170 0 0]/255,'LineWidth',3);
errorbar(1+x,mean(nacho364),std(nacho364)/length(nacho364),'Color',[170 0 0]/255,'LineWidth',3);
plot([0 1]+x,[mean(nacho361),mean(nacho364)],'-o','Color',[170 0 0]/255,'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(orion363),std(orion363)/length(orion363),'Color',[250 0 200]/255,'LineWidth',3);
errorbar(1+x,mean(orion360),std(orion360)/length(orion360),'Color',[250 0 200]/255,'LineWidth',3);
plot([0 1]+x,[mean(orion363),mean(orion360)],'-o','Color',[250 0 200]/255,'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(quetzalcoatl361),std(quetzalcoatl361)/length(quetzalcoatl361),'Color',[250 200 50]/255,'LineWidth',3);
errorbar(1+x,mean(quetzalcoatl364),std(quetzalcoatl364)/length(quetzalcoatl364),'Color',[250 200 50]/255,'LineWidth',3);
plot([0 1]+x,[mean(quetzalcoatl361),mean(quetzalcoatl364)],'-o','Color',[250 200 50]/255,'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(sebastian361),std(sebastian361)/length(sebastian361),'Color',[150 100 70]/255,'LineWidth',3);
errorbar(1+x,mean(sebastian364),std(sebastian364)/length(sebastian364),'Color',[150 100 70]/255,'LineWidth',3);
plot([0 1]+x,[mean(sebastian361),mean(sebastian364)],'-o','Color',[150 100 70]/255,'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(buster364),std(buster364)/length(buster364),'Color',[250 120 0]/255,'LineWidth',3);
errorbar(1+x,mean(buster359),std(buster359)/length(buster359),'Color',[250 120 0]/255,'LineWidth',3);
plot([0 1]+x,[mean(buster364),mean(buster359)],'-o','Color',[250 120 0]/255,'LineWidth',3);

xlim([-.5 1.5])
ylim([0 40]);
set(gca,'XTick',[0 1],'XTickLabel',{'control','CNQX-treated'},'FontSize',18);
ylabel('mEPSC amplitude (pA)','FontSize',18);


%% ttx avg by cell

hold off;
x = randn/100;
errorbar(0+x,mean(cinderella17),std(cinderella17)/length(cinderella17),'Color',[0 0.4 0.1],'LineWidth',3); hold on;
errorbar(1+x,mean(cinderella18),std(cinderella18)/length(cinderella18),'Color',[0 0.4 0.1],'LineWidth',3);
plot([0 1]+x,[mean(cinderella17),mean(cinderella18)],'-o','Color',[0 0.5 0.3],'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(cinderella19307),std(cinderella19307)/length(cinderella19307),'Color',[0 0.8 0],'LineWidth',3);
errorbar(1+x,mean(cinderella19309),std(cinderella19309)/length(cinderella19309),'Color',[0 0.8 0],'LineWidth',3);
plot([0 1]+x,[mean(cinderella19307),mean(cinderella19309)],'-o','Color',[0 0.8 0],'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(cinderella360),std(cinderella360)/length(cinderella360),'Color',[0 0 0.8],'LineWidth',3);
errorbar(1+x,mean(cinderella363),std(cinderella363)/length(cinderella363),'Color',[0 0 0.8],'LineWidth',3);
plot([0 1]+x,[mean(cinderella360),mean(cinderella363)],'-o','Color',[0 0 0.8],'LineWidth',3);


x = randn/100;
errorbar(0+x,mean(euclid1),std(euclid1)/length(euclid1),'Color',[0.1 0.5 1],'LineWidth',3);
errorbar(1+x,mean(euclid4),std(euclid4)/length(euclid4),'Color',[0.1 0.5 1],'LineWidth',3);
plot([0 1]+x,[mean(euclid1),mean(euclid4)],'-o','Color',[0.1 0.5 1],'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(donkeylips360),std(donkeylips360)/length(donkeylips360),'Color',[150 50 150]/255,'LineWidth',3);
errorbar(1+x,mean(donkeylips363),std(donkeylips363)/length(donkeylips363),'Color',[150 50 150]/255,'LineWidth',3);
plot([0 1]+x,[mean(donkeylips360),mean(donkeylips363)],'-o','Color',[150 50 150]/255,'LineWidth',3);

xlim([-.5 1.5])
ylim([0 65]);
set(gca,'XTick',[0 1],'XTickLabel',{'control','TTX-treated'},'FontSize',18);
ylabel('mEPSC amplitude (pA)','FontSize',18);



%% cnqx avg by cell normalized

hold off;
x = randn/100;
errorbar(0+x,mean(buster2)/mean(buster2),std(buster2)/length(buster2),'Color',[1 0 0],'LineWidth',3); hold on;
errorbar(1+x,mean(buster1)/mean(buster2),std(buster1)/length(buster1),'Color',[1 0 0],'LineWidth',3);
plot([0 1]+x+x,[mean(buster2),mean(buster1)]/mean(buster2),'-o','Color',[1 0 0],'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(nacho361)/mean(nacho361),std(nacho361)/length(nacho361),'Color',[170 0 0]/255,'LineWidth',3);
errorbar(1+x,mean(nacho364)/mean(nacho361),std(nacho364)/length(nacho364),'Color',[170 0 0]/255,'LineWidth',3);
plot([0 1]+x,[mean(nacho361),mean(nacho364)]/mean(nacho361),'-o','Color',[170 0 0]/255,'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(orion363)/mean(orion363),std(orion363)/length(orion363),'Color',[250 0 200]/255,'LineWidth',3);
errorbar(1+x,mean(orion360)/mean(orion363),std(orion360)/length(orion360),'Color',[250 0 200]/255,'LineWidth',3);
plot([0 1]+x,[mean(orion363),mean(orion360)]/mean(orion363),'-o','Color',[250 0 200]/255,'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(quetzalcoatl361)/mean(quetzalcoatl361),std(quetzalcoatl361)/length(quetzalcoatl361),'Color',[250 200 50]/255,'LineWidth',3);
errorbar(1+x,mean(quetzalcoatl364)/mean(quetzalcoatl361),std(quetzalcoatl364)/length(quetzalcoatl364),'Color',[250 200 50]/255,'LineWidth',3);
plot([0 1]+x,[mean(quetzalcoatl361),mean(quetzalcoatl364)]/mean(quetzalcoatl361),'-o','Color',[250 200 50]/255,'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(sebastian361)/mean(sebastian361),std(sebastian361)/length(sebastian361),'Color',[150 100 70]/255,'LineWidth',3);
errorbar(1+x,mean(sebastian364)/mean(sebastian361),std(sebastian364)/length(sebastian364),'Color',[150 100 70]/255,'LineWidth',3);
plot([0 1]+x,[mean(sebastian361),mean(sebastian364)]/mean(sebastian361),'-o','Color',[150 100 70]/255,'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(buster364)/mean(buster364),std(buster364)/length(buster364),'Color',[250 120 0]/255,'LineWidth',3);
errorbar(1+x,mean(buster359)/mean(buster364),std(buster359)/length(buster359),'Color',[250 120 0]/255,'LineWidth',3);
plot([0 1]+x,[mean(buster364),mean(buster359)]/mean(buster364),'-o','Color',[250 120 0]/255,'LineWidth',3);

xlim([-.5 1.5])
set(gca,'XTick',[0 1],'XTickLabel',{'control','CNQX-treated'},'FontSize',18);
ylabel('mEPSC amplitude (pA)','FontSize',18);


%% ttx avg by cell normalized

hold off;
x = randn/100;
errorbar(0+x,mean(cinderella17),std(cinderella17)/length(cinderella17),'Color',[0 0.4 0.1],'LineWidth',3); hold on;
errorbar(1+x,mean(cinderella18),std(cinderella18)/length(cinderella18),'Color',[0 0.4 0.1],'LineWidth',3);
plot([0 1]+x,[mean(cinderella17),mean(cinderella18)],'-o','Color',[0 0.5 0.3],'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(cinderella19307),std(cinderella19307)/length(cinderella19307),'Color',[0 0.8 0],'LineWidth',3);
errorbar(1+x,mean(cinderella19309),std(cinderella19309)/length(cinderella19309),'Color',[0 0.8 0],'LineWidth',3);
plot([0 1]+x,[mean(cinderella19307),mean(cinderella19309)],'-o','Color',[0 0.8 0],'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(cinderella360),std(cinderella360)/length(cinderella360),'Color',[0 0 0.8],'LineWidth',3);
errorbar(1+x,mean(cinderella363),std(cinderella363)/length(cinderella363),'Color',[0 0 0.8],'LineWidth',3);
plot([0 1]+x,[mean(cinderella360),mean(cinderella363)],'-o','Color',[0 0 0.8],'LineWidth',3);


x = randn/100;
errorbar(0+x,mean(euclid1),std(euclid1)/length(euclid1),'Color',[0.1 0.5 1],'LineWidth',3);
errorbar(1+x,mean(euclid4),std(euclid4)/length(euclid4),'Color',[0.1 0.5 1],'LineWidth',3);
plot([0 1]+x,[mean(euclid1),mean(euclid4)],'-o','Color',[0.1 0.5 1],'LineWidth',3);

x = randn/100;
errorbar(0+x,mean(donkeylips360),std(donkeylips360)/length(donkeylips360),'Color',[150 50 150]/255,'LineWidth',3);
errorbar(1+x,mean(donkeylips363),std(donkeylips363)/length(donkeylips363),'Color',[150 50 150]/255,'LineWidth',3);
plot([0 1]+x,[mean(donkeylips360),mean(donkeylips363)],'-o','Color',[150 50 150]/255,'LineWidth',3);

xlim([-.5 1.5])
ylim([0 65]);
set(gca,'XTick',[0 1],'XTickLabel',{'control','TTX-treated'},'FontSize',18);
ylabel('mEPSC amplitude (pA)','FontSize',18);

