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

Skip to content

Commit e5bcfa8

Browse files
committed
Add return field to documentation of 'get_major_ticks'
1 parent a451e2c commit e5bcfa8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/matplotlib/axis.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,13 @@ 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+
"""
1324+
Get the tick instances; grow as necessary.
1325+
1326+
Returns
1327+
-------
1328+
list of `.Tick` objects
1329+
"""
13241330
if numticks is None:
13251331
numticks = len(self.get_majorticklocs())
13261332

0 commit comments

Comments
 (0)