Skip to content

Commit 471e668

Browse files
committed
Fix docstrings
1 parent 5d48e42 commit 471e668

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/ticker.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ def pos(self, val):
853853
return sign * val
854854

855855
def unpos(self, val):
856-
"""The inverse of _pos."""
856+
"""The inverse of pos."""
857857
sign, val = np.sign(val), np.abs(val)
858858
if val > self.linscale:
859859
val = np.power(self.base, val - self.linscale)
@@ -865,7 +865,7 @@ def firstdec(self):
865865
"""
866866
Get the first decade (i.e. first positive major tick candidate).
867867
It shall be at least half the width of a logarithmic decade from the
868-
origin (i.e. its _pos shall be at least 0.5).
868+
origin (i.e. its pos shall be at least 0.5).
869869
"""
870870
firstexp = np.ceil(np.log(self.unpos(0.5)) / np.log(self.base))
871871
firstpow = np.power(self.base, firstexp)
@@ -888,7 +888,7 @@ def dec(self, val):
888888
return sign * val
889889

890890
def undec(self, val):
891-
"""The inverse of _dec."""
891+
"""The inverse of dec."""
892892
firstexp, firstpow = self.firstdec()
893893
sign, val = np.sign(val), np.abs(val)
894894
if val > 1:

0 commit comments

Comments
 (0)