Skip to content

Commit f9816e6

Browse files
author
Tim Hopper
committed
fix plotly api changes
1 parent e2c932f commit f9816e6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Examples.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,33 +1137,33 @@
11371137
" {\n",
11381138
" # Now the regression line\n",
11391139
" 'type' : 'scatter',\n",
1140-
" 'mode' : 'line',\n",
1140+
" 'mode' : 'lines',\n",
11411141
" 'x' : preds['displ'],\n",
11421142
" 'y' : preds['Predicted Value'],\n",
11431143
" 'name' : 'Regression',\n",
11441144
" },\n",
11451145
" {\n",
1146-
" #Add a lower bound for the confidence interval, transparent\n",
1146+
" #Add a lower bound for the confidence interval, white\n",
11471147
" 'type' : 'scatter',\n",
1148-
" 'mode' : 'line',\n",
1148+
" 'mode' : 'lines',\n",
11491149
" 'x' : preds['displ'],\n",
11501150
" 'y' : preds['Mean ci 95% low'],\n",
11511151
" 'name' : 'Lower 95% CI',\n",
11521152
" 'showlegend' : False,\n",
11531153
" 'line' : {\n",
1154-
" 'color' : 'transparent'\n",
1154+
" 'color' : 'white'\n",
11551155
" }\n",
11561156
" },\n",
11571157
" {\n",
11581158
" #Upper bound for the confidence band, transparent but with fill\n",
11591159
" 'type' : 'scatter',\n",
1160-
" 'mode' : 'line',\n",
1160+
" 'mode' : 'lines',\n",
11611161
" 'x' : preds['displ'],\n",
11621162
" 'y' : preds['Mean ci 95% upp'],\n",
11631163
" 'name' : '95% CI',\n",
11641164
" 'fill' : 'tonexty',\n",
11651165
" 'line' : {\n",
1166-
" 'color' : 'transparent'\n",
1166+
" 'color' : 'white'\n",
11671167
" },\n",
11681168
" 'fillcolor' : 'rgba(255, 127, 14, 0.3)'\n",
11691169
" }\n",
@@ -1928,7 +1928,7 @@
19281928
"\n",
19291929
"traces.append({\n",
19301930
" 'type' : 'scatter',\n",
1931-
" 'mode' : 'line',\n",
1931+
" 'mode' : 'lines',\n",
19321932
" 'x' : subcompact.displ,\n",
19331933
" 'y' : subcompact.hwy,\n",
19341934
" 'name' : 'smoothing',\n",

0 commit comments

Comments
 (0)