Skip to content

6 Timecourse Plots

Joses W. Ho edited this page Aug 20, 2018 · 1 revision

Load Experiment

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'].

Time Course Plots

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()

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')

Timecourse Feed Count