|
1137 | 1137 | " {\n",
|
1138 | 1138 | " # Now the regression line\n",
|
1139 | 1139 | " 'type' : 'scatter',\n",
|
1140 |
| - " 'mode' : 'line',\n", |
| 1140 | + " 'mode' : 'lines',\n", |
1141 | 1141 | " 'x' : preds['displ'],\n",
|
1142 | 1142 | " 'y' : preds['Predicted Value'],\n",
|
1143 | 1143 | " 'name' : 'Regression',\n",
|
1144 | 1144 | " },\n",
|
1145 | 1145 | " {\n",
|
1146 |
| - " #Add a lower bound for the confidence interval, transparent\n", |
| 1146 | + " #Add a lower bound for the confidence interval, white\n", |
1147 | 1147 | " 'type' : 'scatter',\n",
|
1148 |
| - " 'mode' : 'line',\n", |
| 1148 | + " 'mode' : 'lines',\n", |
1149 | 1149 | " 'x' : preds['displ'],\n",
|
1150 | 1150 | " 'y' : preds['Mean ci 95% low'],\n",
|
1151 | 1151 | " 'name' : 'Lower 95% CI',\n",
|
1152 | 1152 | " 'showlegend' : False,\n",
|
1153 | 1153 | " 'line' : {\n",
|
1154 |
| - " 'color' : 'transparent'\n", |
| 1154 | + " 'color' : 'white'\n", |
1155 | 1155 | " }\n",
|
1156 | 1156 | " },\n",
|
1157 | 1157 | " {\n",
|
1158 | 1158 | " #Upper bound for the confidence band, transparent but with fill\n",
|
1159 | 1159 | " 'type' : 'scatter',\n",
|
1160 |
| - " 'mode' : 'line',\n", |
| 1160 | + " 'mode' : 'lines',\n", |
1161 | 1161 | " 'x' : preds['displ'],\n",
|
1162 | 1162 | " 'y' : preds['Mean ci 95% upp'],\n",
|
1163 | 1163 | " 'name' : '95% CI',\n",
|
1164 | 1164 | " 'fill' : 'tonexty',\n",
|
1165 | 1165 | " 'line' : {\n",
|
1166 |
| - " 'color' : 'transparent'\n", |
| 1166 | + " 'color' : 'white'\n", |
1167 | 1167 | " },\n",
|
1168 | 1168 | " 'fillcolor' : 'rgba(255, 127, 14, 0.3)'\n",
|
1169 | 1169 | " }\n",
|
|
1928 | 1928 | "\n",
|
1929 | 1929 | "traces.append({\n",
|
1930 | 1930 | " 'type' : 'scatter',\n",
|
1931 |
| - " 'mode' : 'line',\n", |
| 1931 | + " 'mode' : 'lines',\n", |
1932 | 1932 | " 'x' : subcompact.displ,\n",
|
1933 | 1933 | " 'y' : subcompact.hwy,\n",
|
1934 | 1934 | " 'name' : 'smoothing',\n",
|
|
0 commit comments