In [189]:
import pickle
import numpy as np
import seaborn as sns
import pandas
import math
import matplotlib.pyplot as plt
%matplotlib inline

In [191]:
df = pandas.read_csv('growth_data.csv', header=0) # , index_col=0

df['time'] = [float(t.replace(':', '.')) for t in df['time']]
df['OD600'] = [math.log(od) / math.log(2) for od in df['OD600']]
#df['time'] = [t - 13.39 for t in df['time']]
time = 'incubation time (hr)'
od600 = 'log2 (OD600)'
conc = u'concentration (\u03BCL)'
df.columns = [time, od600, conc]

In [192]:
sns.lmplot(time, od600, data=df, hue=conc, fit_reg=True, size=10, scatter_kws={"s": 100})
sns.set(font_scale=2)
sns.plt.xlim(min(df[time]),)
plt.show()
#plt.savefig("conc.png")



In [ ]:


In [ ]: