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

Skip to content

Commit 75d9849

Browse files
committed
Legend: Linting/flake8
1 parent cb52fee commit 75d9849

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/legend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def val_or_rc(val, rc_name):
526526
self._alignment = alignment
527527

528528
# init with null renderer
529-
self._init_legend_box(handles, labels, markerfirst, reverse)
529+
self._init_legend_box(handles, labels,reverse, markerfirst)
530530

531531
tmp = self._loc_used_default
532532
self._set_loc(loc)
@@ -751,7 +751,7 @@ def get_legend_handler(legend_handler_map, orig_handle):
751751
pass
752752
return None
753753

754-
def _init_legend_box(self, handles, labels, markerfirst=True, reverse=False):
754+
def _init_legend_box(self, handles, labels, reverse, markerfirst=True):
755755
"""
756756
Initialize the legend_box. The legend_box is an instance of
757757
the OffsetBox, which is packed with legend handles and
@@ -784,7 +784,7 @@ def _init_legend_box(self, handles, labels, markerfirst=True, reverse=False):
784784
# default transform (e.g., Collections), you need to
785785
# manually set their transform to the self.get_transform().
786786
legend_handler_map = self.get_legend_handler_map()
787-
if reverse == True:
787+
if reverse:
788788
handles.reverse()
789789
labels.reverse()
790790

0 commit comments

Comments
 (0)