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

Skip to content

Commit d568db6

Browse files
committed
fix default showLabel bool
1 parent 4bbdf86 commit d568db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ def __call__(self):
10051005
def show_tick_label(self, locs):
10061006
"""Return boolean array on whether to show a label for the given
10071007
locations"""
1008-
return np.ones(loc.size, dtype=np.bool)
1008+
return np.ones(np.asarray(locs).size, dtype=np.bool)
10091009

10101010
def raise_if_exceeds(self, locs):
10111011
"""raise a RuntimeError if Locator attempts to create more than

0 commit comments

Comments
 (0)