Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d568db6

Browse filesBrowse files
committed
fix default showLabel bool
1 parent 4bbdf86 commit d568db6
Copy full SHA for d568db6

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.