Skip to content

Commit 425329b

Browse files
Update LR91 examples
1 parent d742f74 commit 425329b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/lr91/example_max_conductances.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ def plot_ates_with_cis(results_dict: dict, xs: list, save: bool = False, show: b
164164
before_underscore, after_underscore = treatment.split("_")
165165
after_underscore_braces = f"{{{after_underscore}}}"
166166
latex_compatible_treatment_str = rf"${before_underscore}_{after_underscore_braces}$"
167-
cis_low = [c[0] for c in cis]
168-
cis_high = [c[1] for c in cis]
167+
cis_low = [c[0][0] for c in cis]
168+
cis_high = [c[1][0] for c in cis]
169169
axes.fill_between(
170170
xs, cis_low, cis_high, alpha=0.2, color=input_colors[treatment], label=latex_compatible_treatment_str
171171
)

examples/lr91/example_max_conductances_test_suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def plot_ates_with_cis(results_dict: dict, xs: list, save: bool = False, show=Fa
166166
before_underscore, after_underscore = treatment.split("_")
167167
after_underscore_braces = f"{{{after_underscore}}}"
168168
latex_compatible_treatment_str = rf"${before_underscore}_{after_underscore_braces}$"
169-
cis_low = [c[0] for c in cis]
170-
cis_high = [c[1] for c in cis]
169+
cis_low = [c[0][0] for c in cis]
170+
cis_high = [c[1][0] for c in cis]
171171
axes.fill_between(
172172
xs, cis_low, cis_high, alpha=0.2, color=input_colors[treatment], label=latex_compatible_treatment_str
173173
)

0 commit comments

Comments
 (0)