Calendar of trials#
Trials per day, as a calendar.

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