Skip to content

Commit afb4e10

Browse files
authored
Doc Fixup
Removes whitespace and adds a similar note for `get_yticklabels`
1 parent 8e49f07 commit afb4e10

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3397,7 +3397,7 @@ def get_xticklabels(self, minor=False, which=None):
33973397
-------
33983398
ret : list
33993399
List of `~matplotlib.text.Text` instances.
3400-
3400+
34013401
Notes
34023402
-----
34033403
The tick label strings are not populated until a ``draw``
@@ -3790,6 +3790,13 @@ def get_yticklabels(self, minor=False, which=None):
37903790
-------
37913791
ret : list
37923792
List of `~matplotlib.text.Text` instances.
3793+
3794+
Notes
3795+
-----
3796+
The tick label strings are not populated until a ``draw``
3797+
method has been called.
3798+
3799+
See also: `~.pyplot.draw` and `~.FigureCanvasBase.draw`.
37933800
"""
37943801
return self.yaxis.get_ticklabels(minor=minor, which=which)
37953802

0 commit comments

Comments
 (0)