@@ -343,35 +343,31 @@ def test_legend_handle_label(self):
343
343
with mock .patch ('matplotlib.legend.Legend' ) as Legend :
344
344
fig .legend (lines , ['hello world' ])
345
345
Legend .assert_called_with (fig , lines , ['hello world' ],
346
- bbox_transform = fig .transFigure ,
347
- loc = None )
346
+ bbox_transform = fig .transFigure )
348
347
349
348
def test_legend_no_args (self ):
350
349
fig , ax = plt .subplots ()
351
350
lines = ax .plot (range (10 ), label = 'hello world' )
352
351
with mock .patch ('matplotlib.legend.Legend' ) as Legend :
353
352
fig .legend ()
354
353
Legend .assert_called_with (fig , lines , ['hello world' ],
355
- bbox_transform = fig .transFigure ,
356
- loc = None )
354
+ bbox_transform = fig .transFigure )
357
355
358
356
def test_legend_label_arg (self ):
359
357
fig , ax = plt .subplots ()
360
358
lines = ax .plot (range (10 ))
361
359
with mock .patch ('matplotlib.legend.Legend' ) as Legend :
362
360
fig .legend (['foobar' ])
363
361
Legend .assert_called_with (fig , lines , ['foobar' ],
364
- bbox_transform = fig .transFigure ,
365
- loc = None )
362
+ bbox_transform = fig .transFigure )
366
363
367
364
def test_legend_label_three_args (self ):
368
365
fig , ax = plt .subplots ()
369
366
lines = ax .plot (range (10 ))
370
367
with mock .patch ('matplotlib.legend.Legend' ) as Legend :
371
368
fig .legend (lines , ['foobar' ], 'right' )
372
369
Legend .assert_called_with (fig , lines , ['foobar' ], 'right' ,
373
- bbox_transform = fig .transFigure ,
374
- loc = None )
370
+ bbox_transform = fig .transFigure )
375
371
376
372
def test_legend_label_three_args_pluskw (self ):
377
373
# test that third argument and loc= called together give
0 commit comments