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 1fc42b3

Browse filesBrowse files
authored
Merge pull request #12811 from meeseeksmachine/auto-backport-of-pr-12809-on-v2.2.x
Backport PR #12809 on branch v2.2.x (Fix TypeError when calculating tick_values)
2 parents 4a5064c + 905e56a commit 1fc42b3
Copy full SHA for 1fc42b3

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
@@ -2155,7 +2155,7 @@ def tick_values(self, vmin, vmax):
21552155
stride += 1
21562156

21572157
# Does subs include anything other than 1?
2158-
have_subs = len(subs) > 1 or (len(subs == 1) and subs[0] != 1.0)
2158+
have_subs = len(subs) > 1 or (len(subs) == 1 and subs[0] != 1.0)
21592159

21602160
decades = np.arange(math.floor(vmin) - stride,
21612161
math.ceil(vmax) + 2 * stride, stride)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.