Skip to content

Commit 31d1738

Browse files
committed
Do not use unsupported encodings
1 parent ad47e80 commit 31d1738

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/inference.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,18 +1251,19 @@ visualize the interval on our distribution in {numref}`fig:11-bootstrapping9`.
12511251

12521252
```{code-cell} ipython3
12531253
# Create the annotation for for the 2.5th percentile
1254-
text_025 = alt.Chart().mark_text(
1254+
rule_025 = alt.Chart().mark_rule(color='#f58518', size=3, strokeDash=[5]).encode(
1255+
x=alt.datum(ci_bounds[0.025])
1256+
).properties(
1257+
width=500
1258+
)
1259+
text_025 = rule_025.mark_text(
12551260
color='#f58518',
12561261
size=12,
12571262
fontWeight='bold',
12581263
dy=-160
12591264
).encode(
1260-
x=alt.datum(ci_bounds[0.025]),
12611265
text=alt.datum(f'2.5th percentile ({ci_bounds[0.025].round(1)})')
1262-
).properties(
1263-
width=500
12641266
)
1265-
rule_025 = text_025.mark_rule(color='#f58518', size=3, strokeDash=[5])
12661267
12671268
# Create the annotation for for the 97.5th percentile
12681269
text_975 = text_025.encode(

0 commit comments

Comments
 (0)