@@ -80,21 +80,21 @@ def test_framealpha():
80
80
plt .legend (framealpha = 0.5 )
81
81
82
82
83
- @image_comparison (baseline_images = ['scatter_rc3' ,'scatter_rc1' ], remove_text = True )
83
+ @image_comparison (baseline_images = ['scatter_rc3' , 'scatter_rc1' ], remove_text = True )
84
84
def test_rc ():
85
85
# using subplot triggers some offsetbox functionality untested elsewhere
86
86
fig = plt .figure ()
87
- ax = plt .subplot (121 )
87
+ ax = plt .subplot (121 )
88
88
ax .scatter (list (xrange (10 )), list (xrange (10 , 0 , - 1 )), label = 'three' )
89
89
ax .legend (loc = "center left" , bbox_to_anchor = [1.0 , 0.5 ],
90
- title = "My legend" )
90
+ title = "My legend" )
91
91
92
92
mpl .rcParams ['legend.scatterpoints' ] = 1
93
93
fig = plt .figure ()
94
- ax = plt .subplot (121 )
94
+ ax = plt .subplot (121 )
95
95
ax .scatter (list (xrange (10 )), list (xrange (10 , 0 , - 1 )), label = 'one' )
96
96
ax .legend (loc = "center left" , bbox_to_anchor = [1.0 , 0.5 ],
97
- title = "My legend" )
97
+ title = "My legend" )
98
98
99
99
100
100
@image_comparison (baseline_images = ['legend_expand' ], remove_text = True )
@@ -167,8 +167,8 @@ def __call__(self, legend, orig_handle, fontsize, handlebox):
167
167
handler_map = {None : AnyObjectHandler ()})
168
168
169
169
warn .assert_called_with (u'Legend handers must now implement a '
170
- '"legend_artist" method rather than '
171
- 'being a callable.' ,
170
+ '"legend_artist" method rather than '
171
+ 'being a callable.' ,
172
172
MatplotlibDeprecationWarning ,
173
173
stacklevel = 1 )
174
174
0 commit comments