Skip to content

Commit 905e56a

Browse files
timhoffmMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #12809: Fix TypeError when calculating tick_values
1 parent 7c67116 commit 905e56a

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
@@ -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)