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

Skip to content

Commit b9f19e1

Browse files
committed
Legend: Add docstring
1 parent 8964e8a commit b9f19e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/legend.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ def _update_bbox_to_anchor(self, loc_in_canvas):
209209
If *True*, legend marker is placed to the left of the legend label.
210210
If *False*, legend marker is placed to the right of the legend label.
211211
212+
reverse : bool, default: False
213+
If *True*, the legend labels are displayed in reverse order as the input.
214+
If *False*, the legend labels are displayed in the same order as the input.
215+
212216
frameon : bool, default: :rc:`legend.frameon`
213217
Whether the legend should be drawn on a patch (frame).
214218

0 commit comments

Comments
 (0)