Skip to content

Commit f68f903

Browse files
jb-legerQuLogic
andcommitted
logitscale: typos and documentation convention in LogitFormatter
Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent eb955d7 commit f68f903

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

lib/matplotlib/ticker.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,25 +1183,25 @@ def __init__(
11831183
r"""
11841184
Parameters
11851185
----------
1186-
use_overline : bool (default: False)
1187-
if x > 1/2, with x = 1-v, indicate if x should be displayed as
1186+
use_overline : bool, default: False
1187+
If x > 1/2, with x = 1-v, indicate if x should be displayed as
11881188
$\overline{v}$. The default is to display $1-v$.
11891189
1190-
one_half : str (default: r"\frac{1}{2}")
1191-
the string used to represent 1/2.
1190+
one_half : str, default: r"\frac{1}{2}"
1191+
The string used to represent 1/2.
11921192
1193-
minor : bool (default: False)
1194-
indicate if the formatter is formatting minor ticks or not.
1193+
minor : bool, default: False
1194+
Indicate if the formatter is formatting minor ticks or not.
11951195
Basically minor ticks are not labelled, except when only few ticks
11961196
are provided, the most espaced ticks are labelled. See others
11971197
parameters to change the default behavior.
11981198
1199-
minor_threshold : int (default: 25)
1200-
maximum number of locs for labelling some minor ticks. This
1199+
minor_threshold : int, default: 25
1200+
Maximum number of locs for labelling some minor ticks. This
12011201
parameter have no effect if minor is False.
12021202
1203-
minor_number : int (default: 6)
1204-
number of ticks which are labelled when the number of ticks is
1203+
minor_number : int, default: 6
1204+
Number of ticks which are labelled when the number of ticks is
12051205
below the threshold.
12061206
"""
12071207
self._use_overline = use_overline
@@ -1217,8 +1217,8 @@ def use_overline(self, use_overline):
12171217
12181218
Parameters
12191219
----------
1220-
use_overline : bool (default: False)
1221-
if x > 1/2, with x = 1-v, indicate if x should be displayed as
1220+
use_overline : bool, default: False
1221+
If x > 1/2, with x = 1-v, indicate if x should be displayed as
12221222
$\overline{v}$. The default is to display $1-v$.
12231223
"""
12241224
self._use_overline = use_overline
@@ -1227,19 +1227,19 @@ def set_one_half(self, one_half):
12271227
r"""
12281228
Set the way one half is displayed.
12291229
1230-
one_half : str (default: r"\frac{1}{2}")
1231-
the string used to represent 1/2.
1230+
one_half : str, default: r"\frac{1}{2}"
1231+
The string used to represent 1/2.
12321232
"""
12331233
self._one_half = one_half
12341234

12351235
def set_minor_threshold(self, minor_threshold):
12361236
"""
1237-
Set the threshold for labelling minors ticks
1237+
Set the threshold for labelling minors ticks.
12381238
12391239
Parameters
12401240
----------
12411241
minor_threshold : int
1242-
maximum number of locs for labelling some minor ticks. This
1242+
Maximum number of locations for labelling some minor ticks. This
12431243
parameter have no effect if minor is False.
12441244
"""
12451245
self._minor_threshold = minor_threshold
@@ -1252,7 +1252,7 @@ def set_minor_number(self, minor_number):
12521252
Parameters
12531253
----------
12541254
minor_number : int
1255-
number of ticks which are labelled when the number of ticks is
1255+
Number of ticks which are labelled when the number of ticks is
12561256
below the threshold.
12571257
"""
12581258
self._minor_number = minor_number

0 commit comments

Comments
 (0)