% 2022-09-07
% Dummy placeholder for Fig 6 based on BBB #11 data
% Data in https://docs.google.com/presentation/d/1WhSQCBnx0Vull6MfpYP5Dz37ybCR9RSdJAYpj-UtOls/edit#slide=id.g137f0e5349c_0_8

rx = {'Unexposed','Non-creamy','Creamy'};

% % % BBB #11 - PLACEHOLDER DATA
% bright = [2,11,6];
% dim = [17,5,5];
% total = bright+dim;

% % BBB #12
bright = [5,41,20];
total = [50,48,34];
dim = total-bright;

% figure;
% hold on;
% scatter(1:3,bright./total);
% set(gca,'xticklabel',rx,'xtick',1:3);
% ylabel('Proportion of flies');
% ylim([0 1]);
% xlim([0.5 3.5]);

% % Make happy little pie charts
figure;
for i = 1:3
    subplot(3,1,i);
    h = pie([bright(i)/total(i),dim(i)/total(i)]);
    title(rx(i));
end

imgDir = "D:\Harvard\Manuscripts\Summit paper\Figures\Figure 6\";
set(gcf,'PaperUnits','inches','PaperPosition',[0 0 6 4]);
imgPre = "Fig6A_actual";
print(strcat(imgDir,imgPre),'-dpdf');
print(strcat(imgDir,imgPre),'-dpng');
close;
