Skip to content

Commit

Permalink
Remove t-based CI in timeseries plot
Browse files Browse the repository at this point in the history
  • Loading branch information
fjclark committed Jan 25, 2024
1 parent db6723d commit caf12f4
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions red/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def plot_timeseries(
ax: _Axes,
data: _np.ndarray,
times: _np.ndarray,
show_ci: bool = True,
n_blocks: int = 100,
time_units: str = "ns",
y_label: str = r"$\Delta G$ / kcal mol$^{-1}$",
Expand All @@ -44,9 +43,6 @@ def plot_timeseries(
The times at which the data was sampled. This
should have shape (n_samples,).
show_ci : bool, optional
Whether to show the 95% t-based confidence interval.
n_blocks : int, optional
The number of blocks to use for block averaging. This
makes trends clearer. If 0, no block averaging is
Expand Down Expand Up @@ -103,24 +99,6 @@ def plot_timeseries(
if n_runs > 1:
ax.plot(times, data.mean(axis=0), color="black", label="Mean")

## Plot the confidence interval.
# if show_ci and n_runs > 1:
# means = data.mean(axis=0)
# conf_int = (
# _stats.t.interval(
# 0.95,
# n_runs - 1,
# means,
# scale=_stats.sem(data),
# )[1]
# - means
# ) # 95 % C.I.

## Plot the confidence interval.
# ax.fill_between(
# times, means - conf_int, means + conf_int, alpha=0.3, color="grey"
# )

# Only show the legend if there is more than one run.
if n_runs > 1:
ax.legend()
Expand Down

0 comments on commit caf12f4

Please sign in to comment.