@@ -435,10 +435,10 @@ class ScalarFormatter(Formatter):
435435 lim = (1_000_000, 1_000_010)
436436
437437 fig, (ax1, ax2, ax3) = plt.subplots(3, 1, gridspec_kw={'hspace': 2})
438- ax1.set(title='offset_notation ', xlim=lim)
438+ ax1.set(title='offset notation ', xlim=lim)
439439 ax2.set(title='scientific notation', xlim=lim)
440440 ax2.xaxis.get_major_formatter().set_useOffset(False)
441- ax3.set(title='floating point notation', xlim=lim)
441+ ax3.set(title='floating- point notation', xlim=lim)
442442 ax3.xaxis.get_major_formatter().set_useOffset(False)
443443 ax3.xaxis.get_major_formatter().set_scientific(False)
444444
@@ -1146,10 +1146,10 @@ def __init__(
11461146 Parameters
11471147 ----------
11481148 use_overline : bool, default: False
1149- If x > 1/2, with x = 1- v, indicate if x should be displayed as
1150- $\overline{v}$. The default is to display $1- v$.
1149+ If x > 1/2, with x = 1 - v, indicate if x should be displayed as
1150+ $\overline{v}$. The default is to display $1 - v$.
11511151
1152- one_half : str, default: r"\frac{1}{2}"
1152+ one_half : str, default: r"\\ frac{1}{2}"
11531153 The string used to represent 1/2.
11541154
11551155 minor : bool, default: False
@@ -1179,17 +1179,17 @@ def use_overline(self, use_overline):
11791179
11801180 Parameters
11811181 ----------
1182- use_overline : bool, default: False
1183- If x > 1/2, with x = 1- v, indicate if x should be displayed as
1184- $\overline{v}$. The default is to display $1- v$.
1182+ use_overline : bool
1183+ If x > 1/2, with x = 1 - v, indicate if x should be displayed as
1184+ $\overline{v}$. The default is to display $1 - v$.
11851185 """
11861186 self ._use_overline = use_overline
11871187
11881188 def set_one_half (self , one_half ):
11891189 r"""
11901190 Set the way one half is displayed.
11911191
1192- one_half : str, default: r"\frac{1}{2}"
1192+ one_half : str
11931193 The string used to represent 1/2.
11941194 """
11951195 self ._one_half = one_half
@@ -1707,14 +1707,14 @@ def tick_values(self, vmin, vmax):
17071707
17081708
17091709class FixedLocator (Locator ):
1710- """
1710+ r """
17111711 Place ticks at a set of fixed values.
17121712
17131713 If *nbins* is None ticks are placed at all values. Otherwise, the *locs* array of
1714- possible positions will be subsampled to keep the number of ticks <=
1715- :math:`nbins* + 1`. The subsampling will be done to include the smallest absolute
1716- value; for example, if zero is included in the array of possibilities, then it of
1717- the chosen ticks.
1714+ possible positions will be subsampled to keep the number of ticks
1715+ :math:`\leq nbins + 1`. The subsampling will be done to include the smallest
1716+ absolute value; for example, if zero is included in the array of possibilities, then
1717+ it will be included in the chosen ticks.
17181718 """
17191719
17201720 def __init__ (self , locs , nbins = None ):
@@ -1861,9 +1861,9 @@ def __init__(self, base=1.0, offset=0.0):
18611861 """
18621862 Parameters
18631863 ----------
1864- base : float > 0
1864+ base : float > 0, default: 1.0
18651865 Interval between ticks.
1866- offset : float
1866+ offset : float, default: 0.0
18671867 Value added to each multiple of *base*.
18681868
18691869 .. versionadded:: 3.8
@@ -1877,9 +1877,9 @@ def set_params(self, base=None, offset=None):
18771877
18781878 Parameters
18791879 ----------
1880- base : float > 0
1880+ base : float > 0, optional
18811881 Interval between ticks.
1882- offset : float
1882+ offset : float, optional
18831883 Value added to each multiple of *base*.
18841884
18851885 .. versionadded:: 3.8
0 commit comments