-
Notifications
You must be signed in to change notification settings - Fork 0
6 Timecourse 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.timecourse
class gives access to the following timecourse plots:
plot.timecourse.feed_count()
plot.timecourse.feed_volume()
plot.timecourse.feed_speed()
In [3]: expt1.plot.timecourse.feed_count()
The function by default creates a column for each Genotype, and will stack and color the area plots by FoodChoice.
Because this is a timecourse plot, the feedlogs will (by default) be resampled every 5 minutes.
You can alter the options as follows:
In [4]: expt1.plot.timecourse.feed_count(col='FoodChoice',
row='Status',
color_by='Temperature',
gridlines=False,
resample_by='10min')