|
8 | 8 | from numpy import ma |
9 | 9 |
|
10 | 10 | import matplotlib as mpl |
11 | | -import matplotlib.category # Register category unit converter as side-effect. |
| 11 | +import matplotlib.category # Register category unit converter as side effect. |
12 | 12 | import matplotlib.cbook as cbook |
13 | 13 | import matplotlib.collections as mcoll |
14 | 14 | import matplotlib.colors as mcolors |
15 | 15 | import matplotlib.contour as mcontour |
16 | | -import matplotlib.dates # noqa # Register date unit converter as side-effect. |
| 16 | +import matplotlib.dates # noqa # Register date unit converter as side effect. |
17 | 17 | import matplotlib.image as mimage |
18 | 18 | import matplotlib.legend as mlegend |
19 | 19 | import matplotlib.lines as mlines |
@@ -541,7 +541,7 @@ def indicate_inset_zoom(self, inset_ax, **kwargs): |
541 | 541 | @_docstring.dedent_interpd |
542 | 542 | def secondary_xaxis(self, location, *, functions=None, **kwargs): |
543 | 543 | """ |
544 | | - Add a second x-axis to this Axes. |
| 544 | + Add a second x-axis to this `~.axes.Axes`. |
545 | 545 |
|
546 | 546 | For example if we want to have a second scale for the data plotted on |
547 | 547 | the xaxis. |
@@ -583,7 +583,7 @@ def invert(x): |
583 | 583 | @_docstring.dedent_interpd |
584 | 584 | def secondary_yaxis(self, location, *, functions=None, **kwargs): |
585 | 585 | """ |
586 | | - Add a second y-axis to this Axes. |
| 586 | + Add a second y-axis to this `~.axes.Axes`. |
587 | 587 |
|
588 | 588 | For example if we want to have a second scale for the data plotted on |
589 | 589 | the yaxis. |
@@ -721,8 +721,8 @@ def axhline(self, y=0, xmin=0, xmax=1, **kwargs): |
721 | 721 | Other Parameters |
722 | 722 | ---------------- |
723 | 723 | **kwargs |
724 | | - Valid keyword arguments are `.Line2D` properties, with the |
725 | | - exception of 'transform': |
| 724 | + Valid keyword arguments are `.Line2D` properties, except for |
| 725 | + 'transform': |
726 | 726 |
|
727 | 727 | %(Line2D:kwdoc)s |
728 | 728 |
|
@@ -789,8 +789,8 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs): |
789 | 789 | Other Parameters |
790 | 790 | ---------------- |
791 | 791 | **kwargs |
792 | | - Valid keyword arguments are `.Line2D` properties, with the |
793 | | - exception of 'transform': |
| 792 | + Valid keyword arguments are `.Line2D` properties, except for |
| 793 | + 'transform': |
794 | 794 |
|
795 | 795 | %(Line2D:kwdoc)s |
796 | 796 |
|
@@ -1491,7 +1491,7 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs): |
1491 | 1491 | >>> plot(x1, y1, 'g^', x2, y2, 'g-') |
1492 | 1492 |
|
1493 | 1493 | In this case, any additional keyword argument applies to all |
1494 | | - datasets. Also this syntax cannot be combined with the *data* |
| 1494 | + datasets. Also, this syntax cannot be combined with the *data* |
1495 | 1495 | parameter. |
1496 | 1496 |
|
1497 | 1497 | By default, each line is assigned a different style specified by a |
@@ -1753,15 +1753,15 @@ def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False, |
1753 | 1753 | @_docstring.dedent_interpd |
1754 | 1754 | def loglog(self, *args, **kwargs): |
1755 | 1755 | """ |
1756 | | - Make a plot with log scaling on both the x and y axis. |
| 1756 | + Make a plot with log scaling on both the x- and y-axis. |
1757 | 1757 |
|
1758 | 1758 | Call signatures:: |
1759 | 1759 |
|
1760 | 1760 | loglog([x], y, [fmt], data=None, **kwargs) |
1761 | 1761 | loglog([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs) |
1762 | 1762 |
|
1763 | 1763 | This is just a thin wrapper around `.plot` which additionally changes |
1764 | | - both the x-axis and the y-axis to log scaling. All of the concepts and |
| 1764 | + both the x-axis and the y-axis to log scaling. All the concepts and |
1765 | 1765 | parameters of plot can be used here as well. |
1766 | 1766 |
|
1767 | 1767 | The additional parameters *base*, *subs* and *nonpositive* control the |
@@ -1807,16 +1807,16 @@ def loglog(self, *args, **kwargs): |
1807 | 1807 | @_docstring.dedent_interpd |
1808 | 1808 | def semilogx(self, *args, **kwargs): |
1809 | 1809 | """ |
1810 | | - Make a plot with log scaling on the x axis. |
| 1810 | + Make a plot with log scaling on the x-axis. |
1811 | 1811 |
|
1812 | 1812 | Call signatures:: |
1813 | 1813 |
|
1814 | 1814 | semilogx([x], y, [fmt], data=None, **kwargs) |
1815 | 1815 | semilogx([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs) |
1816 | 1816 |
|
1817 | 1817 | This is just a thin wrapper around `.plot` which additionally changes |
1818 | | - the x-axis to log scaling. All of the concepts and parameters of plot |
1819 | | - can be used here as well. |
| 1818 | + the x-axis to log scaling. All the concepts and parameters of plot can |
| 1819 | + be used here as well. |
1820 | 1820 |
|
1821 | 1821 | The additional parameters *base*, *subs*, and *nonpositive* control the |
1822 | 1822 | x-axis properties. They are just forwarded to `.Axes.set_xscale`. |
@@ -1854,16 +1854,16 @@ def semilogx(self, *args, **kwargs): |
1854 | 1854 | @_docstring.dedent_interpd |
1855 | 1855 | def semilogy(self, *args, **kwargs): |
1856 | 1856 | """ |
1857 | | - Make a plot with log scaling on the y axis. |
| 1857 | + Make a plot with log scaling on the y-axis. |
1858 | 1858 |
|
1859 | 1859 | Call signatures:: |
1860 | 1860 |
|
1861 | 1861 | semilogy([x], y, [fmt], data=None, **kwargs) |
1862 | 1862 | semilogy([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs) |
1863 | 1863 |
|
1864 | 1864 | This is just a thin wrapper around `.plot` which additionally changes |
1865 | | - the y-axis to log scaling. All of the concepts and parameters of plot |
1866 | | - can be used here as well. |
| 1865 | + the y-axis to log scaling. All the concepts and parameters of plot can |
| 1866 | + be used here as well. |
1867 | 1867 |
|
1868 | 1868 | The additional parameters *base*, *subs*, and *nonpositive* control the |
1869 | 1869 | y-axis properties. They are just forwarded to `.Axes.set_yscale`. |
@@ -3121,7 +3121,7 @@ def pie(self, x, explode=None, labels=None, colors=None, |
3121 | 3121 | For example, you can pass in ``wedgeprops = {'linewidth': 3}`` |
3122 | 3122 | to set the width of the wedge border lines equal to 3. |
3123 | 3123 | For more details, look at the doc/arguments of the wedge object. |
3124 | | - By default ``clip_on=False``. |
| 3124 | + By default, ``clip_on=False``. |
3125 | 3125 |
|
3126 | 3126 | textprops : dict, default: None |
3127 | 3127 | Dict of arguments to pass to the text objects. |
@@ -3352,7 +3352,7 @@ def errorbar(self, x, y, yerr=None, xerr=None, |
3352 | 3352 | The format for the data points / data lines. See `.plot` for |
3353 | 3353 | details. |
3354 | 3354 |
|
3355 | | - Use 'none' (case insensitive) to plot errorbars without any data |
| 3355 | + Use 'none' (case-insensitive) to plot errorbars without any data |
3356 | 3356 | markers. |
3357 | 3357 |
|
3358 | 3358 | ecolor : color, default: None |
@@ -4387,7 +4387,7 @@ def invalid_shape_exception(csize, xsize): |
4387 | 4387 | c_is_mapped = False |
4388 | 4388 | if c.size != xsize: |
4389 | 4389 | valid_shape = False |
4390 | | - # If c can be either mapped values or a RGB(A) color, prefer |
| 4390 | + # If c can be either mapped values or an RGB(A) color, prefer |
4391 | 4391 | # the former if shapes match, the latter otherwise. |
4392 | 4392 | elif c.size == xsize: |
4393 | 4393 | c = c.ravel() |
@@ -4458,9 +4458,9 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None, |
4458 | 4458 | Note that *c* should not be a single numeric RGB or RGBA sequence |
4459 | 4459 | because that is indistinguishable from an array of values to be |
4460 | 4460 | colormapped. If you want to specify the same RGB or RGBA value for |
4461 | | - all points, use a 2D array with a single row. Otherwise, value- |
4462 | | - matching will have precedence in case of a size matching with *x* |
4463 | | - and *y*. |
| 4461 | + all points, use a 2D array with a single row. Otherwise, |
| 4462 | + value-matching will have precedence in case of a size matching with |
| 4463 | + *x* and *y*. |
4464 | 4464 |
|
4465 | 4465 | If you wish to specify a single color for all points |
4466 | 4466 | prefer the *color* keyword argument. |
@@ -5126,7 +5126,7 @@ def _quiver_units(self, args, kwargs): |
5126 | 5126 | return (x, y) + args[2:] |
5127 | 5127 | return args |
5128 | 5128 |
|
5129 | | - # args can by a combination if X, Y, U, V, C and all should be replaced |
| 5129 | + # args can be a combination of X, Y, U, V, C and all should be replaced |
5130 | 5130 | @_preprocess_data() |
5131 | 5131 | @_docstring.dedent_interpd |
5132 | 5132 | def quiver(self, *args, **kwargs): |
@@ -6566,7 +6566,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None, |
6566 | 6566 | equals 1. |
6567 | 6567 |
|
6568 | 6568 | bottom : array-like, scalar, or None, default: None |
6569 | | - Location of the bottom of each bin, ie. bins are drawn from |
| 6569 | + Location of the bottom of each bin, i.e. bins are drawn from |
6570 | 6570 | ``bottom`` to ``bottom + hist(x, bins)`` If a scalar, the bottom |
6571 | 6571 | of each bin is shifted by the same amount. If an array, each bin |
6572 | 6572 | is shifted independently and the length of bottom must match the |
@@ -7060,9 +7060,9 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None, |
7060 | 7060 | histogrammed along the first dimension and values in y are |
7061 | 7061 | histogrammed along the second dimension. |
7062 | 7062 | xedges : 1D array |
7063 | | - The bin edges along the x axis. |
| 7063 | + The bin edges along the x-axis. |
7064 | 7064 | yedges : 1D array |
7065 | | - The bin edges along the y axis. |
| 7065 | + The bin edges along the y-axis. |
7066 | 7066 | image : `~.matplotlib.collections.QuadMesh` |
7067 | 7067 |
|
7068 | 7068 | Other Parameters |
@@ -7653,7 +7653,7 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None, |
7653 | 7653 | scale : {'default', 'linear', 'dB'} |
7654 | 7654 | The scaling of the values in the *spec*. 'linear' is no scaling. |
7655 | 7655 | 'dB' returns the values in dB scale. When *mode* is 'psd', |
7656 | | - this is dB power (10 * log10). Otherwise this is dB amplitude |
| 7656 | + this is dB power (10 * log10). Otherwise, this is dB amplitude |
7657 | 7657 | (20 * log10). 'default' is 'dB' if *mode* is 'psd' or |
7658 | 7658 | 'magnitude' and 'linear' otherwise. This must be 'linear' |
7659 | 7659 | if *mode* is 'angle' or 'phase'. |
@@ -8240,7 +8240,7 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5, |
8240 | 8240 |
|
8241 | 8241 | table = mtable.table |
8242 | 8242 |
|
8243 | | - # args can by either Y or y1, y2, ... and all should be replaced |
| 8243 | + # args can be either Y or y1, y2, ... and all should be replaced |
8244 | 8244 | stackplot = _preprocess_data()(mstack.stackplot) |
8245 | 8245 |
|
8246 | 8246 | streamplot = _preprocess_data( |
|
0 commit comments