figure(figsize=(7,5),dpi=600)
genes = ['LHY','CCA1','PRR7','TOC1','LUX','Col-0','empty']
genes_colors = {'CCA1':'crimson','LHY':'gold','PRR7':'indigo','TOC1':'#87CEFA','LUX':'plum','empty':'black','Col-0':'red'}
errorbar(array(range(-24,24*2+12,2))[:6],mean(abs_unit.iloc[0:6,:], axis=0)[:6],color=genes_colors['LHY'],barsabove=True,
yerr=std(abs_unit.iloc[0:6,:], axis=0)[:6]/sqrt(2), fmt='o--', lw=2, alpha=0.5)
errorbar(array(range(-24,24*2+12,2))[:6],mean(abs_unit.iloc[6:12,:], axis=0)[:6],color=genes_colors['CCA1'],
yerr=std(abs_unit.iloc[6:12,:], axis=0)[:6]/sqrt(2), fmt='o--', lw=2, alpha=0.5)
errorbar(array(range(-24,24*2+12,2))[:6],mean(abs_unit.iloc[12:18,:], axis=0)[:6],
yerr=std(abs_unit.iloc[12:18,:], axis=0)[:6]/sqrt(2), fmt='o--', lw=2, color=genes_colors['TOC1'], alpha=0.5)
errorbar(array(range(-24,24*2+12,2))[:6],mean(abs_unit.iloc[18:24,:], axis=0)[:6],
yerr=std(abs_unit.iloc[18:24,:], axis=0)[:6]/sqrt(2), fmt='o--', lw=2, color=genes_colors['PRR7'], alpha=0.5)
errorbar(array(range(-24,24*2+12,2))[6:],mean(abs_unit.iloc[0:6,:], axis=0)[6:],color=genes_colors['LHY'],barsabove=False,
yerr=std(abs_unit.iloc[0:6,:], axis=0)[6:]/sqrt(2), fmt='o-', lw=3, label='LHY')
errorbar(array(range(-24,24*2+12,2))[6:],mean(abs_unit.iloc[6:12,:], axis=0)[6:], color=genes_colors['CCA1'],
yerr=std(abs_unit.iloc[6:12,:], axis=0)[6:]/sqrt(2), fmt='o-', lw=3, label='CCA1')
errorbar(array(range(-24,24*2+12,2))[6:],mean(abs_unit.iloc[12:18,:], axis=0)[6:],color=genes_colors['TOC1'],
yerr=std(abs_unit.iloc[12:18,:], axis=0)[6:]/sqrt(2), fmt='o-', lw=3, label='TOC1')
errorbar(array(range(-24,24*2+12,2))[6:],mean(abs_unit.iloc[18:24,:], axis=0)[6:],color=genes_colors['PRR7'],
yerr=std(abs_unit.iloc[18:24,:], axis=0)[6:]/sqrt(2), fmt='o-', lw=3, label='PRR7')
#errorbar(array(range(-24,24*2+12,2)),mean(abs_unit.iloc[24:30,:], axis=0),
# yerr=std(abs_unit.iloc[24:30,:], axis=0)/sqrt(2), fmt='s-', lw=2.5, label='LUX', color='cyan')
yticks(fontsize=16)
#errorbar(range(0,24*3,2),mean(data.iloc[3:6,:], axis=0), yerr=std(data.iloc[3:6,:], axis=0))
ylim(1e3,1e6)
yscale('log')
legend(loc='lower right', fontsize=12)
xlabel('Time in constant light (h)', fontsize=22)
ylabel('#molecules/cell', fontsize=22)
xticks(range(0,23*3,24),fontsize=22)
#savefig('ProteinTimeseries.pdf', format='pdf', dpi=300)
axvspan(-12,0,color='gray')
axvspan(12,24,color='gray', alpha=0.4)
axvspan(12+24,24*2,color='gray', alpha=0.4)
xlim(-24,24*3-12)
tight_layout()
savefig('lhycca1toc1prr7.svg',format='svg',dpi=600, transparent=True)
savefig('lhycca1toc1prr7.pdf',format='pdf',dpi=600, transparent=True)
savefig('lhycca1toc1prr7.png',format='png',dpi=600, transparent=True)