@@ -1292,14 +1292,10 @@ def test_df_dataframe_all_args(self):
1292
1292
'data' : [{'marker' : {'color' : 'white' },
1293
1293
'name' : '' ,
1294
1294
'x' : ['2009-01-01' , '2009-02-30' ],
1295
- 'y' : [0 , 0 ]},
1296
- {'marker' : {'color' : 'white' },
1297
- 'name' : '' ,
1298
- 'x' : ['2009-03-05' , '2009-04-15' ],
1299
- 'y' : [1 , 1 ]}],
1295
+ 'y' : [0 , 0 ]}],
1300
1296
'layout' : {'height' : 600 ,
1301
1297
'hovermode' : 'closest' ,
1302
- 'shapes' : [{'fillcolor' : 'rgb(5 .0, 10 .0, 172 .0)' ,
1298
+ 'shapes' : [{'fillcolor' : 'rgb(31 .0, 119 .0, 180 .0)' ,
1303
1299
'line' : {'width' : 0 },
1304
1300
'opacity' : 1 ,
1305
1301
'type' : 'rect' ,
@@ -1308,16 +1304,6 @@ def test_df_dataframe_all_args(self):
1308
1304
'xref' : 'x' ,
1309
1305
'y0' : - 0.2 ,
1310
1306
'y1' : 0.2 ,
1311
- 'yref' : 'y' },
1312
- {'fillcolor' : 'rgb(220.0, 220.0, 220.0)' ,
1313
- 'line' : {'width' : 0 },
1314
- 'opacity' : 1 ,
1315
- 'type' : 'rect' ,
1316
- 'x0' : '2009-03-05' ,
1317
- 'x1' : '2009-04-15' ,
1318
- 'xref' : 'x' ,
1319
- 'y0' : 0.8 ,
1320
- 'y1' : 1.2 ,
1321
1307
'yref' : 'y' }],
1322
1308
'showlegend' : False ,
1323
1309
'title' : 'Gantt Chart' ,
@@ -1335,11 +1321,12 @@ def test_df_dataframe_all_args(self):
1335
1321
'type' : 'date' ,
1336
1322
'zeroline' : False },
1337
1323
'yaxis' : {'autorange' : False ,
1338
- 'range' : [- 1 , 3 ],
1324
+ 'range' : [- 1 , 2 ],
1339
1325
'showgrid' : False ,
1340
- 'ticktext' : ['Job A' , 'Job B' ],
1341
- 'tickvals' : [0 , 1 ],
1326
+ 'ticktext' : ['Job A' ],
1327
+ 'tickvals' : [0 ],
1342
1328
'zeroline' : False }}
1329
+
1343
1330
}
1344
1331
1345
1332
self .assertEqual (test_gantt_chart ['data' ][0 ],
@@ -1354,8 +1341,8 @@ def test_df_dataframe_all_args(self):
1354
1341
#self.assert_dict_equal(test_gantt_chart['layout']['shapes'][1],
1355
1342
# exp_gantt_chart['layout']['shapes'][1])
1356
1343
1357
- # self.assert_dict_equal(test_gantt_chart['layout'],
1358
- # exp_gantt_chart['layout'])
1344
+ self .assert_dict_equal (test_gantt_chart ['layout' ],
1345
+ exp_gantt_chart ['layout' ])
1359
1346
1360
1347
1361
1348
class TestViolin (NumpyTestUtilsMixin , TestCase ):
0 commit comments