Skip to content

Commit b151ab2

Browse files
authored
Merge pull request #12812 from meeseeksmachine/auto-backport-of-pr-12809-on-v3.0.x
Backport PR #12809 on branch v3.0.x (Fix TypeError when calculating tick_values)
2 parents 1dfab7b + ed3ee5f commit b151ab2

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
@@ -2186,7 +2186,7 @@ def tick_values(self, vmin, vmax):
21862186
stride += 1
21872187

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

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

0 commit comments

Comments
 (0)