@@ -1177,8 +1177,8 @@ ci_bounds
1177
1177
``` {code-cell} ipython3
1178
1178
:tags: [remove-cell]
1179
1179
1180
- glue("ci_lower", round(ci_bounds[0.025], 2 ))
1181
- glue("ci_upper", round(ci_bounds[0.975], 2 ))
1180
+ glue("ci_lower", round(ci_bounds[0.025], 1 ))
1181
+ glue("ci_upper", round(ci_bounds[0.975], 1 ))
1182
1182
```
1183
1183
1184
1184
Our interval, \$ {glue:}` ci_lower ` to \$ {glue:}` ci_upper ` , captures
@@ -1192,14 +1192,15 @@ alt.layer(
1192
1192
alt.Chart().mark_text(color='#f58518', size=12, fontWeight='bold').encode(
1193
1193
x=alt.datum(ci_bounds[0.025]),
1194
1194
y=alt.value(-10),
1195
- text=alt.datum(f'2.5th percentile ({ci_bounds[0.025].round(2 )})')
1195
+ text=alt.datum(f'2.5th percentile ({ci_bounds[0.025].round(1 )})')
1196
1196
),
1197
1197
alt.Chart().mark_rule(color='#f58518', size=3, strokeDash=[5]).encode(x=alt.datum(ci_bounds[0.975])),
1198
1198
alt.Chart().mark_text(color='#f58518', size=12, fontWeight='bold').encode(
1199
1199
x=alt.datum(ci_bounds[0.975]),
1200
1200
y=alt.value(-10),
1201
- text=alt.datum(f'97.5th percentile ({ci_bounds[0.975].round(2)})')
1202
- )
1201
+ text=alt.datum(f'97.5th percentile ({ci_bounds[0.975].round(1)})')
1202
+ ),
1203
+ width=500
1203
1204
)
1204
1205
```
1205
1206
0 commit comments