| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -435,10 +435,10 @@ class ScalarFormatter(Formatter): | |||
| 435 | 435 | lim = (1_000_000, 1_000_010) | |
| 436 | 436 | ||
| 437 | 437 | 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) | ||
| 439 | 439 | ax2.set(title='scientific notation', xlim=lim) | |
| 440 | 440 | 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) | ||
| 442 | 442 | ax3.xaxis.get_major_formatter().set_useOffset(False) | |
| 443 | 443 | ax3.xaxis.get_major_formatter().set_scientific(False) | |
| 444 | 444 | ||
@@ -1146,10 +1146,10 @@ def __init__( | |||
| 1146 | 1146 | Parameters | |
| 1147 | 1147 | ---------- | |
| 1148 | 1148 | 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$. | ||
| 1151 | 1151 | ||
| 1152 | - one_half : str, default: r"\frac{1}{2}" | ||
| 1152 | + one_half : str, default: r"\\frac{1}{2}" | ||
| 1153 | 1153 | The string used to represent 1/2. | |
| 1154 | 1154 | ||
| 1155 | 1155 | minor : bool, default: False | |
@@ -1179,17 +1179,17 @@ def use_overline(self, use_overline): | |||
| 1179 | 1179 | ||
| 1180 | 1180 | Parameters | |
| 1181 | 1181 | ---------- | |
| 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$. | ||
| 1185 | 1185 | """ | |
| 1186 | 1186 | self._use_overline = use_overline | |
| 1187 | 1187 | ||
| 1188 | 1188 | def set_one_half(self, one_half): | |
| 1189 | 1189 | r""" | |
| 1190 | 1190 | Set the way one half is displayed. | |
| 1191 | 1191 | ||
| 1192 | - one_half : str, default: r"\frac{1}{2}" | ||
| 1192 | + one_half : str | ||
| 1193 | 1193 | The string used to represent 1/2. | |
| 1194 | 1194 | """ | |
| 1195 | 1195 | self._one_half = one_half | |
@@ -1707,14 +1707,14 @@ def tick_values(self, vmin, vmax): | |||
| 1707 | 1707 | ||
| 1708 | 1708 | ||
| 1709 | 1709 | class FixedLocator(Locator): | |
| 1710 | - """ | ||
| 1710 | + r""" | ||
| 1711 | 1711 | Place ticks at a set of fixed values. | |
| 1712 | 1712 | ||
| 1713 | 1713 | 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. | ||
| 1718 | 1718 | """ | |
| 1719 | 1719 | ||
| 1720 | 1720 | def __init__(self, locs, nbins=None): | |
@@ -1861,9 +1861,9 @@ def __init__(self, base=1.0, offset=0.0): | |||
| 1861 | 1861 | """ | |
| 1862 | 1862 | Parameters | |
| 1863 | 1863 | ---------- | |
| 1864 | - base : float > 0 | ||
| 1864 | + base : float > 0, default: 1.0 | ||
| 1865 | 1865 | Interval between ticks. | |
| 1866 | - offset : float | ||
| 1866 | + offset : float, default: 0.0 | ||
| 1867 | 1867 | Value added to each multiple of *base*. | |
| 1868 | 1868 | ||
| 1869 | 1869 | .. versionadded:: 3.8 | |
@@ -1877,9 +1877,9 @@ def set_params(self, base=None, offset=None): | |||
| 1877 | 1877 | ||
| 1878 | 1878 | Parameters | |
| 1879 | 1879 | ---------- | |
| 1880 | - base : float > 0 | ||
| 1880 | + base : float > 0, optional | ||
| 1881 | 1881 | Interval between ticks. | |
| 1882 | - offset : float | ||
| 1882 | + offset : float, optional | ||
| 1883 | 1883 | Value added to each multiple of *base*. | |
| 1884 | 1884 | ||
| 1885 | 1885 | .. versionadded:: 3.8 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments