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

Skip to content

Commit 4628ceb

Browse files
committed
Move deprecation back to 3.0.
Also, clarify a downward-counting for-loop.
1 parent 74c2e7c commit 4628ceb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/matplotlib/ticker.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,12 +1661,12 @@ def view_limits(self, vmin, vmax):
16611661
return mtransforms.nonsingular(vmin, vmax)
16621662

16631663

1664-
@cbook.deprecated("3.1")
1664+
@cbook.deprecated("3.0")
16651665
def closeto(x, y):
16661666
return abs(x - y) < 1e-10
16671667

16681668

1669-
@cbook.deprecated("3.1")
1669+
@cbook.deprecated("3.0")
16701670
class Base(object):
16711671
'this solution has some hacks to deal with floating point inaccuracies'
16721672
def __init__(self, base):
@@ -1958,9 +1958,7 @@ def _raw_ticks(self, vmin, vmax):
19581958
break
19591959

19601960
# This is an upper limit; move to smaller steps if necessary.
1961-
# for i in range(istep):
1962-
# step = steps[istep - i]
1963-
for istep in range(istep, -1, -1):
1961+
for istep in reversed(range(istep + 1)):
19641962
step = steps[istep]
19651963

19661964
if (self._integer and

0 commit comments

Comments
 (0)