Skip to content

Commit 1fc42b3

Browse 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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/ticker.py

+1-1
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)