lecilab-behavior-analysis
  • Getting started
  • Figures
  • API
  • Daily reports
/

Calendar of trials#

Trials per day, as a calendar.

Calendar of trials
from matplotlib import pyplot as plt

from lecilab_behavior_analysis.plots import calendar_plot

daily = trials.groupby("year_month_day").size()
daily.index = pd.to_datetime(daily.index)
years = daily.index.year.nunique()
fig, axes = plt.subplots(years, 1, figsize=(10, 1.6 * years), squeeze=False)
calendar_plot(daily, list(axes[:, 0]))  # one row per year

trials, day, summary, events and cohort are the inputs of the examples. Back to the gallery

2022, Learning Circuits Lab

Made with Sphinx and Shibuya theme.