@@ -161,8 +161,9 @@ def create_artists(self, legend, orig_handle,
161
161
The fontsize in pixels. The legend artists being created should
162
162
be scaled according to the given fontsize.
163
163
trans : `~matplotlib.transforms.Transform`
164
- The transform that is applied to the legend artists being created. Typically
165
- from unit coordinates in the handler box to screen coordinates.
164
+ The transform that is applied to the legend artists being created.
165
+ Typically from unit coordinates in the handler box to screen
166
+ coordinates.
166
167
"""
167
168
raise NotImplementedError ('Derived must override' )
168
169
@@ -307,7 +308,7 @@ class HandlerLine2D(HandlerNpoints):
307
308
def create_artists (self ,legend ,orig_handle ,
308
309
xdescent ,ydescent ,width ,height ,fontsize ,
309
310
trans ):
310
- #Doc-string inherited
311
+ #docstring inherited
311
312
xdata ,xdata_marker = self .get_xdata (legend ,xdescent ,ydescent ,
312
313
width ,height ,fontsize )
313
314
@@ -372,7 +373,7 @@ def _create_patch(self, legend, orig_handle,
372
373
373
374
def create_artists (self ,legend ,orig_handle ,
374
375
xdescent ,ydescent ,width ,height ,fontsize ,trans ):
375
- #Doc-string inherited
376
+ #docstring inherited
376
377
p = self ._create_patch (legend ,orig_handle ,
377
378
xdescent ,ydescent ,width ,height ,fontsize )
378
379
self .update_prop (p ,orig_handle ,legend )
@@ -406,7 +407,7 @@ def _create_line(orig_handle, width, height):
406
407
407
408
def create_artists (self ,legend ,orig_handle ,
408
409
xdescent ,ydescent ,width ,height ,fontsize ,trans ):
409
- #Doc-string inherited
410
+ #docstring inherited
410
411
if orig_handle .get_fill ()or (orig_handle .get_hatch ()is not None ):
411
412
p = self ._create_patch (orig_handle ,xdescent ,ydescent ,width ,
412
413
height )
@@ -437,7 +438,7 @@ def _default_update_prop(self, legend_handle, orig_handle):
437
438
438
439
def create_artists (self ,legend ,orig_handle ,
439
440
xdescent ,ydescent ,width ,height ,fontsize ,trans ):
440
- #Doc-string inherited
441
+ #docstring inherited
441
442
xdata ,xdata_marker = self .get_xdata (legend ,xdescent ,ydescent ,
442
443
width ,height ,fontsize )
443
444
ydata = np .full_like (xdata , (height - ydescent )/ 2 )
@@ -504,7 +505,7 @@ def create_collection(self, orig_handle, sizes, offsets, offset_transform):
504
505
def create_artists (self ,legend ,orig_handle ,
505
506
xdescent ,ydescent ,width ,height ,fontsize ,
506
507
trans ):
507
- #Doc-string inherited
508
+ #docstring inherited
508
509
xdata ,xdata_marker = self .get_xdata (legend ,xdescent ,ydescent ,
509
510
width ,height ,fontsize )
510
511
@@ -568,7 +569,7 @@ def get_err_size(self, legend, xdescent, ydescent,
568
569
def create_artists (self ,legend ,orig_handle ,
569
570
xdescent ,ydescent ,width ,height ,fontsize ,
570
571
trans ):
571
- #Doc-string inherited
572
+ #docstring inherited
572
573
plotlines ,caplines ,barlinecols = orig_handle
573
574
574
575
xdata ,xdata_marker = self .get_xdata (legend ,xdescent ,ydescent ,
@@ -687,7 +688,7 @@ def get_ydata(self, legend, xdescent, ydescent, width, height, fontsize):
687
688
def create_artists (self ,legend ,orig_handle ,
688
689
xdescent ,ydescent ,width ,height ,fontsize ,
689
690
trans ):
690
- #Doc-string inherited
691
+ #docstring inherited
691
692
markerline ,stemlines ,baseline = orig_handle
692
693
# Check to see if the stemcontainer is storing lines as a list or a
693
694
# LineCollection. Eventually using a list will be removed, and this
@@ -765,7 +766,7 @@ def __init__(self, ndivide=1, pad=None, **kwargs):
765
766
def create_artists (self ,legend ,orig_handle ,
766
767
xdescent ,ydescent ,width ,height ,fontsize ,
767
768
trans ):
768
- #Doc-string inherited
769
+ #docstring inherited
769
770
handler_map = legend .get_legend_handler_map ()
770
771
771
772
if self ._ndivide is None :
@@ -832,7 +833,7 @@ def get_first(prop_array):
832
833
833
834
def create_artists (self ,legend ,orig_handle ,
834
835
xdescent ,ydescent ,width ,height ,fontsize ,trans ):
835
- #Doc-string inherited
836
+ #docstring inherited
836
837
p = Rectangle (xy = (- xdescent ,- ydescent ),
837
838
width = width ,height = height )
838
839
self .update_prop (p ,orig_handle ,legend )