File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1251,18 +1251,19 @@ visualize the interval on our distribution in {numref}`fig:11-bootstrapping9`.
1251
1251
1252
1252
``` {code-cell} ipython3
1253
1253
# 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(
1255
1260
color='#f58518',
1256
1261
size=12,
1257
1262
fontWeight='bold',
1258
1263
dy=-160
1259
1264
).encode(
1260
- x=alt.datum(ci_bounds[0.025]),
1261
1265
text=alt.datum(f'2.5th percentile ({ci_bounds[0.025].round(1)})')
1262
- ).properties(
1263
- width=500
1264
1266
)
1265
- rule_025 = text_025.mark_rule(color='#f58518', size=3, strokeDash=[5])
1266
1267
1267
1268
# Create the annotation for for the 97.5th percentile
1268
1269
text_975 = text_025.encode(
You can’t perform that action at this time.
0 commit comments