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

Skip to content

Commit 07a3f80

Browse files
tacaswellJulian Mehne
authored andcommitted
DOC : added docstring
1 parent 59f3cc7 commit 07a3f80

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

lib/matplotlib/legend_handler.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,27 @@ def create_artists(self, legend, orig_handle,
567567

568568
class HandlerTuple(HandlerBase):
569569
"""
570-
Handler for Tuple
570+
Handler for Tuple.
571+
572+
Additional kwargs are passed through to `HandlerBase`.
573+
574+
Parameters
575+
----------
576+
577+
ndivide : int, optional
578+
The number of sections to divide the legend area into. If 0,
579+
use the length of the input tuple.
580+
581+
582+
pad : float, optional
583+
If None, fall back to `legend.borderpad` as the default.
584+
In units of fraction of font size.
585+
586+
587+
571588
"""
572589
def __init__(self, ndivide=1, pad=None, **kwargs):
590+
573591
self._ndivide = ndivide
574592
self._pad = pad
575593
HandlerBase.__init__(self, **kwargs)

0 commit comments

Comments
 (0)