Skip to content

Commit 29ef83e

Browse files
committed
DOC: fix property docstrings
1 parent 10247ef commit 29ef83e

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

lib/matplotlib/colorbar.py

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -489,61 +489,41 @@ def __init__(self, ax, mappable=None, *, cmap=None,
489489

490490
@property
491491
def locator(self):
492-
"""
493-
Major `~.Locator` being used for colorbar.
494-
"""
492+
"""Major tick `.Locator` for the colorbar."""
495493
return self._long_axis().get_major_locator()
496494

497495
@locator.setter
498496
def locator(self, loc):
499-
"""
500-
Set the major `~.Locator` being used for colorbar.
501-
"""
502497
self._long_axis().set_major_locator(loc)
503498
self._locator = loc
504499

505500
@property
506501
def minorlocator(self):
507-
"""
508-
Minor `~.Locator` being used for colorbar.
509-
"""
502+
"""Minor tick `.Locator` for the colorbar."""
510503
return self._long_axis().get_minor_locator()
511504

512505
@minorlocator.setter
513506
def minorlocator(self, loc):
514-
"""
515-
Set minor `~.Locator` being used for colorbar.
516-
"""
517507
self._long_axis().set_minor_locator(loc)
518508
self._minorlocator = loc
519509

520510
@property
521511
def formatter(self):
522-
"""
523-
Major `~.Formatter` being used for colorbar.
524-
"""
512+
"""Major tick label `.Formatter` for the colorbar."""
525513
return self._long_axis().get_major_formatter()
526514

527515
@formatter.setter
528516
def formatter(self, fmt):
529-
"""
530-
Set major `~.Formatter` being used for colorbar.
531-
"""
532517
self._long_axis().set_major_formatter(fmt)
533518
self._formatter = fmt
534519

535520
@property
536521
def minorformatter(self):
537-
"""
538-
Minor `~.Formatter` being used for colorbar
539-
"""
522+
"""Minor tick `.Formatter` for the colorbar."""
540523
return self._long_axis().get_minor_formatter()
541524

542525
@minorformatter.setter
543526
def minorformatter(self, fmt):
544-
"""
545-
Set minor `~.Formatter` being used for colorbar
546-
"""
547527
self._long_axis().set_minor_formatter(fmt)
548528
self._minorformatter = fmt
549529

0 commit comments

Comments
 (0)