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

Skip to content

Commit 5df3742

Browse files
committed
Minor doc markup fixes.
1 parent 963f913 commit 5df3742

File tree

3 files changed

+22
-24
lines changed

3 files changed

+22
-24
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3062,28 +3062,27 @@ def set_xticklabels(self, labels, fontdict=None, minor=False, **kwargs):
30623062
Parameters
30633063
----------
30643064
labels : list of str
3065-
list of string labels
3065+
List of string labels.
30663066
30673067
fontdict : dict, optional
3068-
A dictionary controlling the appearance of the ticklabels,
3069-
the default `fontdict` is:
3068+
A dictionary controlling the appearance of the ticklabels.
3069+
The default `fontdict` is::
30703070
30713071
{'fontsize': rcParams['axes.titlesize'],
3072-
'fontweight' : rcParams['axes.titleweight'],
3072+
'fontweight': rcParams['axes.titleweight'],
30733073
'verticalalignment': 'baseline',
30743074
'horizontalalignment': loc}
30753075
30763076
minor : bool, optional
3077-
If True select the minor ticklabels,
3078-
else select the minor ticklabels
3077+
Whether to set the minor ticklabels rather than the major ones.
30793078
30803079
Returns
30813080
-------
3082-
A list of `~matplotlib.text.Text` instances
3081+
A list of `~.Text` instances.
30833082
30843083
Other Parameters
30853084
-----------------
3086-
**kwargs : `~matplotlib.text.Text` properties.
3085+
**kwargs : `~.Text` properties.
30873086
"""
30883087
if fontdict is not None:
30893088
kwargs.update(fontdict)
@@ -3385,25 +3384,24 @@ def set_yticklabels(self, labels, fontdict=None, minor=False, **kwargs):
33853384
list of string labels
33863385
33873386
fontdict : dict, optional
3388-
A dictionary controlling the appearance of the ticklabels,
3389-
the default `fontdict` is::
3387+
A dictionary controlling the appearance of the ticklabels.
3388+
The default `fontdict` is::
33903389
33913390
{'fontsize': rcParams['axes.titlesize'],
3392-
'fontweight' : rcParams['axes.titleweight'],
3391+
'fontweight': rcParams['axes.titleweight'],
33933392
'verticalalignment': 'baseline',
33943393
'horizontalalignment': loc}
33953394
33963395
minor : bool, optional
3397-
If True select the minor ticklabels,
3398-
else select the minor ticklabels
3396+
Whether to set the minor ticklabels rather than the major ones.
33993397
34003398
Returns
34013399
-------
3402-
A list of `~matplotlib.text.Text` instances.
3400+
A list of `~.Text` instances.
34033401
34043402
Other Parameters
34053403
----------------
3406-
**kwargs : `~matplotlib.text.Text` properties.
3404+
**kwargs : `~.Text` properties.
34073405
"""
34083406
if fontdict is not None:
34093407
kwargs.update(fontdict)

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ def add_subplot(self, *args, **kwargs):
987987
grid with J rows and K columns.
988988
989989
projection : ['aitoff' | 'hammer' | 'lambert' | \
990-
'mollweide', 'polar' | 'rectilinear'], optional
990+
'mollweide' | 'polar' | 'rectilinear'], optional
991991
The projection type of the axes.
992992
993993
polar : boolean, optional

lib/matplotlib/ticker.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@
9393
custom locator and pass it to the x or y axis instance. The relevant
9494
methods are::
9595
96-
ax.xaxis.set_major_locator( xmajorLocator )
97-
ax.xaxis.set_minor_locator( xminorLocator )
98-
ax.yaxis.set_major_locator( ymajorLocator )
99-
ax.yaxis.set_minor_locator( yminorLocator )
96+
ax.xaxis.set_major_locator(xmajor_locator)
97+
ax.xaxis.set_minor_locator(xminor_locator)
98+
ax.yaxis.set_major_locator(ymajor_locator)
99+
ax.yaxis.set_minor_locator(yminor_locator)
100100
101101
The default minor locator is the NullLocator, e.g., no minor ticks on by
102102
default.
@@ -158,10 +158,10 @@
158158
To control the major and minor tick label formats, use one of the
159159
following methods::
160160
161-
ax.xaxis.set_major_formatter( xmajorFormatter )
162-
ax.xaxis.set_minor_formatter( xminorFormatter )
163-
ax.yaxis.set_major_formatter( ymajorFormatter )
164-
ax.yaxis.set_minor_formatter( yminorFormatter )
161+
ax.xaxis.set_major_formatter(xmajor_formatter)
162+
ax.xaxis.set_minor_formatter(xminor_formatter)
163+
ax.yaxis.set_major_formatter(ymajor_formatter)
164+
ax.yaxis.set_minor_formatter(yminor_formatter)
165165
166166
See :ref:`sphx_glr_gallery_ticks_and_spines_major_minor_demo.py` for an
167167
example of setting major and minor ticks. See the :mod:`matplotlib.dates`

0 commit comments

Comments
 (0)