Skip to content

Commit 140206e

Browse files
committed
updated documentation
1 parent a63c078 commit 140206e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/matplotlib/legend_handler.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ def adjust_drawing_area(self, legend, orig_handle,
9090

9191
def scale_dimensions(self, legend, width, height, orig_handle):
9292
'''
93-
Return larger of input width/height or width/height of orig_handle
93+
Return (width, height) where
94+
width is the larger of input width or width of orig_handle and
95+
height is the larger of input height or height or orig_handle
9496
9597
Parameters
9698
----------
@@ -111,7 +113,7 @@ def scale_dimensions(self, legend, width, height, orig_handle):
111113
def handle_width(self, legend, orig_handle):
112114
'''
113115
Overriden in children classes if orig_handle could be larger
114-
than the default DrawingArea height, returns the height of the handler.
116+
than the default DrawingArea height, returns the height of orig_handle.
115117
116118
Parameters
117119
----------
@@ -127,7 +129,7 @@ def handle_width(self, legend, orig_handle):
127129
def handle_height(self, legend, orig_handle):
128130
'''
129131
Overriden in children classes if orig_handle could be larger
130-
than the default DrawingArea height, returns the height of the handler.
132+
than the default DrawingArea height, returns the height of orig_handle.
131133
132134
Parameters
133135
----------
@@ -758,7 +760,7 @@ def __init__(self, ndivide=1, pad=None, **kwargs):
758760

759761
def handle_width(self, legend, orig_handle):
760762
'''
761-
Returns width of largest handler in *orig_handler* tuple.
763+
Returns width of largest handle in *orig_handle* tuple.
762764
763765
Parameters
764766
----------
@@ -779,7 +781,7 @@ def handle_width(self, legend, orig_handle):
779781

780782
def handle_height(self, legend, orig_handle):
781783
'''
782-
Returns width of largest handler in *orig_handler* tuple.
784+
Returns width of largest handle in *orig_handle* tuple.
783785
784786
Parameters
785787
----------

0 commit comments

Comments
 (0)