mean_and_ci_by_day_plot#

mean_and_ci_by_day_plot(daily: DataFrame, item: str, ax: Axes, color: str | None = None, ylog: bool = False, label: str | None = None) → Axes[source]#

Mean (line) and 5-95 percentiles (shade) of item per day.

The line is solid between consecutive days, and dotted (thinner, lighter) over days without data, so that every day is on the line, also a day without data before or after it. The shade goes through every day with data. A single day is drawn as a dot.

Parameters:
  • daily – one row per day, with columns day (datetime), <item>_mean, <item>_bot95 and <item>_top95.

  • color – the colour of the line (default: the colour of item in the style, e.g. reaction_time, or the text colour).