@@ -117,7 +117,8 @@ from pymc_extras.statespace.utils.constants import (
117
117
TIME_DIM,
118
118
)
119
119
120
- pio.renderers.default = "iframe"
120
+ # make all plotly figures static
121
+ pio.renderers.default = "svg"
121
122
```
122
123
123
124
## Helper Functions
@@ -627,7 +628,7 @@ fig.update_layout(
627
628
"zoom": 2.5,
628
629
},
629
630
)
630
- fig
631
+ fig.show(width=1000, config={"displayModeBar": False})
631
632
```
632
633
633
634
### Hurricane Fiona's Path
@@ -674,7 +675,7 @@ fig.update_layout(
674
675
"zoom": 1.5,
675
676
},
676
677
)
677
- fig
678
+ fig.show(width=1000, config={"displayModeBar": False})
678
679
```
679
680
680
681
## Tracking Hurricane Fiona using a State Space Model
@@ -997,7 +998,7 @@ fig = plot_hurricane_path(
997
998
predicted_covariance=predicted_covs,
998
999
uncertainty_index=0,
999
1000
)
1000
- fig.show(config={"displayModeBar": False})
1001
+ fig.show(width=1000, config={"displayModeBar": False})
1001
1002
```
1002
1003
1003
1004
``` {code-cell} ipython3
@@ -1023,7 +1024,7 @@ The 4-period (24-hour) forecasts exhibit a smaller error compared to the one-ste
1023
1024
fig = plot_hurricane_path(
1024
1025
data=fiona_df, posterior_mean=f_mean, predicted_covariance=cppc_vcov, uncertainty_index=0
1025
1026
)
1026
- fig.show(config={"displayModeBar": False})
1027
+ fig.show(width=1000, config={"displayModeBar": False})
1027
1028
```
1028
1029
1029
1030
``` {code-cell} ipython3
@@ -1379,7 +1380,7 @@ fig = plot_hurricane_path(
1379
1380
predicted_covariance=predicted_covs,
1380
1381
uncertainty_index=0,
1381
1382
)
1382
- fig.show(config={"displayModeBar": False})
1383
+ fig.show(width=1000, config={"displayModeBar": False})
1383
1384
```
1384
1385
1385
1386
``` {code-cell} ipython3
@@ -1429,7 +1430,7 @@ Similarly, our 24-hour forecasts are also slightly worse off compared to those p
1429
1430
fig = plot_hurricane_path(
1430
1431
data=fiona_df, posterior_mean=f_mean, predicted_covariance=cppc_vcov, uncertainty_index=0
1431
1432
)
1432
- fig.show(config={"displayModeBar": False})
1433
+ fig.show(width=1000, config={"displayModeBar": False})
1433
1434
```
1434
1435
1435
1436
``` {code-cell} ipython3
@@ -1841,7 +1842,7 @@ fig = plot_hurricane_path(
1841
1842
predicted_covariance=predicted_covs,
1842
1843
uncertainty_index=0,
1843
1844
)
1844
- fig.show(config={"displayModeBar": False})
1845
+ fig.show(width=1000, config={"displayModeBar": False})
1845
1846
```
1846
1847
1847
1848
``` {code-cell} ipython3
@@ -1877,7 +1878,7 @@ f_mean, cppc_vcov = generate_period_forecasts(
1877
1878
fig = plot_hurricane_path(
1878
1879
data=fiona_df, posterior_mean=f_mean, predicted_covariance=cppc_vcov, uncertainty_index=0
1879
1880
)
1880
- fig.show(config={"displayModeBar": False})
1881
+ fig.show(width=1000, config={"displayModeBar": False})
1881
1882
```
1882
1883
1883
1884
``` {code-cell} ipython3
0 commit comments