@@ -165,7 +165,7 @@ def test_distplot_more_args_prob_dens(self):
165
165
'yaxis' : {'anchor' : 'free' ,
166
166
'domain' : [0.0 , 1 ],
167
167
'position' : 0.0 },
168
- 'title' : ' Dist Plot' }
168
+ 'title' : { 'text' : ' Dist Plot'} }
169
169
self .assert_fig_equal (dp ['layout' ], expected_dp_layout )
170
170
171
171
expected_dp_data_hist_1 = {'autobinx' : False ,
@@ -223,7 +223,7 @@ def test_distplot_more_args_prob(self):
223
223
expected_dp_layout = {'barmode' : 'overlay' ,
224
224
'hovermode' : 'closest' ,
225
225
'legend' : {'traceorder' : 'reversed' },
226
- 'title' : ' Dist Plot' ,
226
+ 'title' : { 'text' : ' Dist Plot'} ,
227
227
'xaxis' : {'anchor' : 'y2' ,
228
228
'domain' : [0.0 , 1.0 ],
229
229
'zeroline' : False },
@@ -948,7 +948,7 @@ def test_trisurf_all_args(self):
948
948
'gridcolor' : 'rgb(255, 255, 255)' ,
949
949
'showbackground' : True ,
950
950
'zerolinecolor' : 'rgb(255, 255, 255)' }},
951
- 'title' : ' Trisurf Plot' ,
951
+ 'title' : { 'text' : ' Trisurf Plot'} ,
952
952
'width' : 800 }
953
953
}
954
954
@@ -1227,7 +1227,7 @@ def test_scatter_plot_matrix(self):
1227
1227
'yaxis' : 'y4' }],
1228
1228
'layout' : {'height' : 1000 ,
1229
1229
'showlegend' : True ,
1230
- 'title' : ' Scatterplot Matrix' ,
1230
+ 'title' : { 'text' : ' Scatterplot Matrix'} ,
1231
1231
'width' : 1000 ,
1232
1232
'xaxis' : {'anchor' : 'y' ,
1233
1233
'domain' : [0.0 , 0.45 ],
@@ -1236,19 +1236,19 @@ def test_scatter_plot_matrix(self):
1236
1236
'domain' : [0.55 , 1.0 ]},
1237
1237
'xaxis3' : {'anchor' : 'y3' ,
1238
1238
'domain' : [0.0 , 0.45 ],
1239
- 'title' : ' Numbers' },
1239
+ 'title' : { 'text' : ' Numbers'} },
1240
1240
'xaxis4' : {'anchor' : 'y4' ,
1241
1241
'domain' : [0.55 , 1.0 ],
1242
1242
'showticklabels' : False ,
1243
- 'title' : ' Fruit' },
1243
+ 'title' : { 'text' : ' Fruit'} },
1244
1244
'yaxis' : {'anchor' : 'x' ,
1245
1245
'domain' : [0.575 , 1.0 ],
1246
- 'title' : ' Numbers' },
1246
+ 'title' : { 'text' : ' Numbers'} },
1247
1247
'yaxis2' : {'anchor' : 'x2' ,
1248
1248
'domain' : [0.575 , 1.0 ]},
1249
1249
'yaxis3' : {'anchor' : 'x3' ,
1250
1250
'domain' : [0.0 , 0.425 ],
1251
- 'title' : ' Fruit' },
1251
+ 'title' : { 'text' : ' Fruit'} },
1252
1252
'yaxis4' : {'anchor' : 'x4' ,
1253
1253
'domain' : [0.0 , 0.425 ]}}
1254
1254
}
@@ -1293,14 +1293,14 @@ def test_scatter_plot_matrix_kwargs(self):
1293
1293
'layout' : {'barmode' : 'stack' ,
1294
1294
'height' : 1000 ,
1295
1295
'showlegend' : True ,
1296
- 'title' : ' Scatterplot Matrix' ,
1296
+ 'title' : { 'text' : ' Scatterplot Matrix'} ,
1297
1297
'width' : 1000 ,
1298
1298
'xaxis' : {'anchor' : 'y' ,
1299
1299
'domain' : [0.0 , 1.0 ],
1300
- 'title' : ' Numbers' },
1300
+ 'title' : { 'text' : ' Numbers'} },
1301
1301
'yaxis' : {'anchor' : 'x' ,
1302
1302
'domain' : [0.0 , 1.0 ],
1303
- 'title' : ' Numbers' }}
1303
+ 'title' : { 'text' : ' Numbers'} }}
1304
1304
}
1305
1305
1306
1306
self .assert_fig_equal (test_scatter_plot_matrix ['data' ][0 ],
@@ -1364,7 +1364,7 @@ def test_df_dataframe_all_args(self):
1364
1364
'y1' : 1.2 ,
1365
1365
'yref' : 'y' }],
1366
1366
'showlegend' : False ,
1367
- 'title' : ' Gantt Chart' ,
1367
+ 'title' : { 'text' : ' Gantt Chart'} ,
1368
1368
'width' : 900 ,
1369
1369
'xaxis' : {'rangeselector' : {'buttons' : [{'count' : 7 ,
1370
1370
'label' : '1w' ,
@@ -1963,7 +1963,7 @@ def test_violin_fig(self):
1963
1963
'height' : 450 ,
1964
1964
'hovermode' : 'closest' ,
1965
1965
'showlegend' : False ,
1966
- 'title' : ' Violin and Rug Plot' ,
1966
+ 'title' : { 'text' : ' Violin and Rug Plot'} ,
1967
1967
'width' : 600 ,
1968
1968
'xaxis' : {'mirror' : False ,
1969
1969
'range' : [- 0.65916964093970665 ,
@@ -1972,7 +1972,7 @@ def test_violin_fig(self):
1972
1972
'showline' : False ,
1973
1973
'showticklabels' : False ,
1974
1974
'ticks' : '' ,
1975
- 'title' : '' ,
1975
+ 'title' : { 'text' : '' } ,
1976
1976
'zeroline' : False },
1977
1977
'yaxis' : {'autorange' : True ,
1978
1978
'mirror' : False ,
@@ -1981,7 +1981,7 @@ def test_violin_fig(self):
1981
1981
'showticklabels' : False ,
1982
1982
'ticklen' : 4 ,
1983
1983
'ticks' : '' ,
1984
- 'title' : '' ,
1984
+ 'title' : { 'text' : '' } ,
1985
1985
'zeroline' : False }}}
1986
1986
1987
1987
# test both items in 'data'
@@ -2184,7 +2184,7 @@ def test_valid_facet_grid_fig(self):
2184
2184
'yanchor' : 'top' },
2185
2185
'paper_bgcolor' : 'rgb(251, 251, 251)' ,
2186
2186
'showlegend' : False ,
2187
- 'title' : '' ,
2187
+ 'title' : { 'text' : '' } ,
2188
2188
'width' : 600 ,
2189
2189
'xaxis' : {'anchor' : 'y' ,
2190
2190
'domain' : [0.0 , 0.4925 ],
0 commit comments