Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a61f93

Browse files
timhoffmImportanceOfBeingErnest
authored andcommitted
Fix TypeError when calculating tick_values (#12809)
1 parent 63fe909 commit 6a61f93

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
@@ -2193,7 +2193,7 @@ def tick_values(self, vmin, vmax):
21932193
stride += 1
21942194

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

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

0 commit comments

Comments
 (0)