@@ -271,8 +271,8 @@ def patch_func(legend=legend, orig_handle=orig_handle,
271
271
xdescent=xdescent, ydescent=ydescent,
272
272
width=width, height=height, fontsize=fontsize)
273
273
274
- Subsequently the created artist will have its ``update_prop`` method
275
- called and the appropriate transform will be applied.
274
+ Subsequently the created artist will have its ``update_prop``
275
+ method called and the appropriate transform will be applied.
276
276
277
277
Notes
278
278
-----
@@ -374,7 +374,7 @@ def update_prop(self, legend_handle, orig_handle, legend):
374
374
self ._update_prop (legend_handle , orig_handle )
375
375
376
376
legend_handle .set_figure (legend .figure )
377
- #legend._set_artist_props(legend_handle)
377
+ # legend._set_artist_props(legend_handle)
378
378
legend_handle .set_clip_box (None )
379
379
legend_handle .set_clip_path (None )
380
380
@@ -499,8 +499,8 @@ def create_artists(self, legend, orig_handle,
499
499
handle_caplines = []
500
500
501
501
if orig_handle .has_xerr :
502
- verts = [ ((x - xerr_size , y ), (x + xerr_size , y ))
503
- for x , y in zip (xdata_marker , ydata_marker )]
502
+ verts = [((x - xerr_size , y ), (x + xerr_size , y ))
503
+ for x , y in zip (xdata_marker , ydata_marker )]
504
504
coll = mcoll .LineCollection (verts )
505
505
self .update_prop (coll , barlinecols [0 ], legend )
506
506
handle_barlinecols .append (coll )
@@ -517,8 +517,8 @@ def create_artists(self, legend, orig_handle,
517
517
handle_caplines .append (capline_right )
518
518
519
519
if orig_handle .has_yerr :
520
- verts = [ ((x , y - yerr_size ), (x , y + yerr_size ))
521
- for x , y in zip (xdata_marker , ydata_marker )]
520
+ verts = [((x , y - yerr_size ), (x , y + yerr_size ))
521
+ for x , y in zip (xdata_marker , ydata_marker )]
522
522
coll = mcoll .LineCollection (verts )
523
523
self .update_prop (coll , barlinecols [0 ], legend )
524
524
handle_barlinecols .append (coll )
@@ -686,7 +686,8 @@ def create_artists(self, legend, orig_handle,
686
686
687
687
class HandlerPolyCollection (HandlerBase ):
688
688
"""
689
- Handler for `.PolyCollection` used in `~.Axes.fill_between` and `~.Axes.stackplot`.
689
+ Handler for `.PolyCollection` used in `~.Axes.fill_between` and
690
+ `~.Axes.stackplot`.
690
691
"""
691
692
def _update_prop (self , legend_handle , orig_handle ):
692
693
def first_color (colors ):
0 commit comments