Skip to content

Commit 364a360

Browse files
committed
Fix annotation coordinates.
1 parent 3bb81a7 commit 364a360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causalpy/skl_experiments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def plot(self, round_to=None):
475475
)
476476
ax.annotate(
477477
"causal\nimpact",
478-
xy=(1.05, np.mean([self.y_pred_counterfactual, self.y_pred_treatment[1]])),
478+
xy=(1.05, np.mean([self.y_pred_counterfactual[0], self.y_pred_treatment[1]])),
479479
xycoords="data",
480480
xytext=(5, 0),
481481
textcoords="offset points",

0 commit comments

Comments
 (0)