Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6221ed

Browse files
authored
Merge pull request #20986 from anntzer/lhhl
Make HandlerLine2D{,Compound} inherit constructors from HandlerNpoints.
2 parents 5656d11 + f23fd1f commit a6221ed

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

lib/matplotlib/legend_handler.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -214,19 +214,6 @@ class HandlerLine2DCompound(HandlerNpoints):
214214
a line-only with a marker-only artist. May be deprecated in the future.
215215
"""
216216

217-
def __init__(self, marker_pad=0.3, numpoints=None, **kwargs):
218-
"""
219-
Parameters
220-
----------
221-
marker_pad : float
222-
Padding between points in legend entry.
223-
numpoints : int
224-
Number of points to show in legend entry.
225-
**kwargs
226-
Keyword arguments forwarded to `.HandlerNpoints`.
227-
"""
228-
super().__init__(marker_pad=marker_pad, numpoints=numpoints, **kwargs)
229-
230217
def create_artists(self, legend, orig_handle,
231218
xdescent, ydescent, width, height, fontsize,
232219
trans):
@@ -286,20 +273,6 @@ class HandlerLine2D(HandlerNpoints):
286273
artist for the line and another for the marker(s).
287274
"""
288275

289-
def __init__(self, marker_pad=0.3, numpoints=None, **kw):
290-
"""
291-
Parameters
292-
----------
293-
marker_pad : float
294-
Padding between points in legend entry.
295-
numpoints : int
296-
Number of points to show in legend entry.
297-
**kwargs
298-
Keyword arguments forwarded to `.HandlerNpoints`.
299-
"""
300-
HandlerNpoints.__init__(self, marker_pad=marker_pad,
301-
numpoints=numpoints, **kw)
302-
303276
def create_artists(self, legend, orig_handle,
304277
xdescent, ydescent, width, height, fontsize,
305278
trans):

0 commit comments

Comments
 (0)