-
Notifications
You must be signed in to change notification settings - Fork 0
7 Cumulative Plots
Joses W. Ho edited this page Aug 20, 2018
·
1 revision
In [1]: expt1=esp.espresso(folder=path_to_expt1)
In [2]: expt1
4 feedlogs with a total of 120 flies.
3 genotypes ['w1118;MB213B-Gal4' 'MB213B-Gal4>UAS-TrpA1' 'w1118;UAS-TrpA1'].
2 temperatures [22 29].
2 foodtypes ['100mM_Sucrose' '100mM_Sucrose_100mM_Arabinose'].
The plot.cumulative
class provides access to two types of cumulative plots:
plot.cumulative.consumption
plot.cumulative.feed_count
In [3]: expt1.plot.cumulative.consumption()
You can use the col
and row
keywords to control the categories used to segregate plots. The color_by
keyword is used to color individual cumulative curves.
You can also alter the time bins used to resample the data with the resample_by
keyword. (The default is 5 minutes.)
In [4]: expt1.plot.cumulative.feed_count(color_by='FoodChoice',
row='Temperature',
col='Status',
gridlines=False,
resample_by='15min')