8000 Comment and parentheses instead of backslash · matplotlib/matplotlib@d079d67 · GitHub
[go: up one dir, main page]

Skip to content

Commit d079d67

Browse files
committed
Comment and parentheses instead of backslash
1 parent 797124c commit d079d67

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/ticker.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,9 +2624,11 @@ def __call__(self):
26242624

26252625
majorstep_no_exponent = 10 ** (np.log10(majorstep) % 1)
26262626

2627-
if np.isclose(majorstep_no_exponent, 2.5) or \
2627+
# The part after the 'or' is for #13069 to make minimal changes to
2628+
# behaviour
2629+
if np.isclose(majorstep_no_exponent, 2.5) or (
26282630
(not np.isclose(majorstep_no_exponent, [1, 10]).any() and
2629-
int(np.round(majorstep_no_exponent)) in [1, 5, 10]):
2631+
int(np.round(majorstep_no_exponent)) in [1, 5, 10])):
26302632
ndivs = 5
26312633
else:
26322634
ndivs = 4

0 commit comments

Comments
 (0)
0