@@ -6113,12 +6113,9 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
61136113 """
61146114 Create a pseudocolor plot with a non-regular rectangular grid.
61156115
6116- Call signatures ::
6116+ Call signature ::
61176117
6118- ax.pcolorfast(C, **kwargs)
6119- ax.pcolorfast(xr, yr, C, **kwargs)
6120- ax.pcolorfast(x, y, C, **kwargs)
6121- ax.pcolorfast(X, Y, C, **kwargs)
6118+ ax.pcolorfast([X, Y], C, /, **kwargs)
61226119
61236120 This method is similar to ~.Axes.pcolor` and `~.Axes.pcolormesh`.
61246121 It's designed to provide the fastest pcolor-type plotting with the
@@ -6138,24 +6135,24 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
61386135 Parameters
61396136 ----------
61406137 C : array-like(M, N)
6141- A scalar 2D array. The values will be color-mapped.
6142- *C* may be a masked array .
6138+ A 2D array or masked array. The values will be color-mapped.
6139+ This argument can only be passed positionally .
61436140
6144- x, y : tuple or array-like
6141+ X, Y : tuple or array-like, default: ``(0, N)``, ``(0, M)``
61456142 *X* and *Y* are used to specify the coordinates of the
61466143 quadilaterals. There are different ways to do this:
61476144
6148- - Use tuples ``xr =(xmin, xmax)`` and ``yr =(ymin, ymax)`` to define
6145+ - Use tuples ``X =(xmin, xmax)`` and ``Y =(ymin, ymax)`` to define
61496146 a *uniform rectiangular grid*.
61506147
61516148 The tuples define the outer edges of the grid. All individual
61526149 quadrilaterals will be of the same size. This is the fastest
61536150 version.
61546151
6155- - Use 1D arrays *x *, *y * to specify a *non-uniform rectangular
6152+ - Use 1D arrays *X *, *Y * to specify a *non-uniform rectangular
61566153 grid*.
61576154
6158- In this case *x * and *y * have to be monotonic 1D arrays of length
6155+ In this case *X * and *Y * have to be monotonic 1D arrays of length
61596156 *N+1* and *M+1*, specifying the x and y boundaries of the cells.
61606157
61616158 The speed is intermediate. Note: The grid is checked, and if
@@ -6172,7 +6169,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
61726169 produce faster and more compact output using ps, pdf, and
61736170 svg backends, however.
61746171
6175- Leaving out *x* and *y* defaults to ``xr=(0, N)``, ``yr=(O, M)`` .
6172+ These arguments can only be passed positionally .
61766173
61776174 cmap : str or `~matplotlib.colors.Colormap`, optional
61786175 A Colormap instance or registered colormap name. The colormap
@@ -6324,32 +6321,7 @@ def clabel(self, CS, *args, **kwargs):
63246321 return CS .clabel (* args , ** kwargs )
63256322 clabel .__doc__ = mcontour .ContourSet .clabel .__doc__
63266323
6327- @docstring .dedent_interpd
6328- def table (self , ** kwargs ):
6329- """
6330- Add a table to the current axes.
6331-
6332- Call signature::
6333-
6334- table(cellText=None, cellColours=None,
6335- cellLoc='right', colWidths=None,
6336- rowLabels=None, rowColours=None, rowLoc='left',
6337- colLabels=None, colColours=None, colLoc='center',
6338- loc='bottom', bbox=None)
6339-
6340- Returns a :class:`matplotlib.table.Table` instance. Either `cellText`
6341- or `cellColours` must be provided. For finer grained control over
6342- tables, use the :class:`~matplotlib.table.Table` class and add it to
6343- the axes with :meth:`~matplotlib.axes.Axes.add_table`.
6344-
6345- Thanks to John Gill for providing the class and table.
6346-
6347- kwargs control the :class:`~matplotlib.table.Table`
6348- properties:
6349-
6350- %(Table)s
6351- """
6352- return mtable .table (self , ** kwargs )
6324+ table = mtable .table
63536325
63546326 #### Data analysis
63556327
@@ -6986,12 +6958,6 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
69866958 r"""
69876959 Plot the power spectral density.
69886960
6989- Call signature::
6990-
6991- psd(x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
6992- window=mlab.window_hanning, noverlap=0, pad_to=None,
6993- sides='default', scale_by_freq=None, return_line=None, **kwargs)
6994-
69956961 The power spectral density :math:`P_{xx}` by Welch's average
69966962 periodogram method. The vector *x* is divided into *NFFT* length
69976963 segments. Each segment is detrended by function *detrend* and
@@ -7109,12 +7075,6 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
71097075 """
71107076 Plot the cross-spectral density.
71117077
7112- Call signature::
7113-
7114- csd(x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
7115- window=mlab.window_hanning, noverlap=0, pad_to=None,
7116- sides='default', scale_by_freq=None, return_line=None, **kwargs)
7117-
71187078 The cross spectral density :math:`P_{xy}` by Welch's average
71197079 periodogram method. The vectors *x* and *y* are divided into
71207080 *NFFT* length segments. Each segment is detrended by function
@@ -7221,11 +7181,6 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
72217181 """
72227182 Plot the magnitude spectrum.
72237183
7224- Call signature::
7225-
7226- magnitude_spectrum(x, Fs=2, Fc=0, window=mlab.window_hanning,
7227- pad_to=None, sides='default', **kwargs)
7228-
72297184 Compute the magnitude spectrum of *x*. Data is padded to a
72307185 length of *pad_to* and the windowing function *window* is applied to
72317186 the signal.
@@ -7323,11 +7278,6 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
73237278 """
73247279 Plot the angle spectrum.
73257280
7326- Call signature::
7327-
7328- angle_spectrum(x, Fs=2, Fc=0, window=mlab.window_hanning,
7329- pad_to=None, sides='default', **kwargs)
7330-
73317281 Compute the angle spectrum (wrapped phase spectrum) of *x*.
73327282 Data is padded to a length of *pad_to* and the windowing function
73337283 *window* is applied to the signal.
@@ -7405,11 +7355,6 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
74057355 """
74067356 Plot the phase spectrum.
74077357
7408- Call signature::
7409-
7410- phase_spectrum(x, Fs=2, Fc=0, window=mlab.window_hanning,
7411- pad_to=None, sides='default', **kwargs)
7412-
74137358 Compute the phase spectrum (unwrapped angle spectrum) of *x*.
74147359 Data is padded to a length of *pad_to* and the windowing function
74157360 *window* is applied to the signal.
@@ -7554,14 +7499,6 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
75547499 """
75557500 Plot a spectrogram.
75567501
7557- Call signature::
7558-
7559- specgram(x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
7560- window=mlab.window_hanning, noverlap=128,
7561- cmap=None, xextent=None, pad_to=None, sides='default',
7562- scale_by_freq=None, mode='default', scale='default',
7563- **kwargs)
7564-
75657502 Compute and plot a spectrogram of data in *x*. Data are split into
75667503 *NFFT* length segments and the spectrum of each section is
75677504 computed. The windowing function *window* is applied to each
0 commit comments