Skip to content

Commit ed3ee5f

Browse files
timhoffmMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #12809: Fix TypeError when calculating tick_values
1 parent 5adb516 commit ed3ee5f

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)