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

Skip to content

Commit 2327801

Browse files
authored
Merge pull request #17019 from vishalBindal/update-major-ticks-docs
Add return field to documentation of 'get_major_ticks'
2 parents 1709db8 + d99bf41 commit 2327801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ def get_minor_formatter(self):
13201320
return self.minor.formatter
13211321

13221322
def get_major_ticks(self, numticks=None):
1323-
"""Get the tick instances; grow as necessary."""
1323+
r"""Return the list of major `.Tick`\s."""
13241324
if numticks is None:
13251325
numticks = len(self.get_majorticklocs())
13261326

@@ -1334,7 +1334,7 @@ def get_major_ticks(self, numticks=None):
13341334
return self.majorTicks[:numticks]
13351335

13361336
def get_minor_ticks(self, numticks=None):
1337-
"""Get the minor tick instances; grow as necessary."""
1337+
r"""Return the list of minor `.Tick`\s."""
13381338
if numticks is None:
13391339
numticks = len(self.get_minorticklocs())
13401340

0 commit comments

Comments
 (0)