8000 Update widgets.py · matplotlib/matplotlib@d6c2cbe · GitHub
[go: up one dir, main page]

Skip to content

Commit d6c2cbe

Browse files
authored
Update widgets.py
1 parent e4842b2 commit d6c2cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ def __init__(self, ax, labels, active=0, activecolor='blue', orientation='vertic
10341034

10351035
# in case of horizontal buttons, write them left-to-right
10361036
if orientation == 'horizontal':
1037-
labels.reverse()
1037+
labels = labels[::-1]
10381038
active = (len(labels) - 1) - active
10391039

10401040
self.labels = []

0 commit comments

Comments
 (0)
0