@@ -6113,12 +6113,9 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6113
6113
"""
6114
6114
Create a pseudocolor plot with a non-regular rectangular grid.
6115
6115
6116
- Call signatures ::
6116
+ Call signature ::
6117
6117
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)
6122
6119
6123
6120
This method is similar to ~.Axes.pcolor` and `~.Axes.pcolormesh`.
6124
6121
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,
6138
6135
Parameters
6139
6136
----------
6140
6137
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 .
6143
6140
6144
- x, y : tuple or array-like
6141
+ X, Y : tuple or array-like, default: ``(0, N)``, ``(0, M)``
6145
6142
*X* and *Y* are used to specify the coordinates of the
6146
6143
quadilaterals. There are different ways to do this:
6147
6144
6148
- - Use tuples ``xr =(xmin, xmax)`` and ``yr =(ymin, ymax)`` to define
6145
+ - Use tuples ``X =(xmin, xmax)`` and ``Y =(ymin, ymax)`` to define
6149
6146
a *uniform rectiangular grid*.
6150
6147
6151
6148
The tuples define the outer edges of the grid. All individual
6152
6149
quadrilaterals will be of the same size. This is the fastest
6153
6150
version.
6154
6151
6155
- - Use 1D arrays *x *, *y * to specify a *non-uniform rectangular
6152
+ - Use 1D arrays *X *, *Y * to specify a *non-uniform rectangular
6156
6153
grid*.
6157
6154
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
6159
6156
*N+1* and *M+1*, specifying the x and y boundaries of the cells.
6160
6157
6161
6158
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,
6172
6169
produce faster and more compact output using ps, pdf, and
6173
6170
svg backends, however.
6174
6171
6175
- Leaving out *x* and *y* defaults to ``xr=(0, N)``, ``yr=(O, M)`` .
6172
+ These arguments can only be passed positionally .
6176
6173
6177
6174
cmap : str or `~matplotlib.colors.Colormap`, optional
6178
6175
A Colormap instance or registered colormap name. The colormap
@@ -6324,32 +6321,7 @@ def clabel(self, CS, *args, **kwargs):
6324
6321
return CS .clabel (* args , ** kwargs )
6325
6322
clabel .__doc__ = mcontour .ContourSet .clabel .__doc__
6326
6323
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
6353
6325
6354
6326
#### Data analysis
6355
6327
@@ -6986,12 +6958,6 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
6986
6958
r"""
6987
6959
Plot the power spectral density.
6988
6960
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
-
6995
6961
The power spectral density :math:`P_{xx}` by Welch's average
6996
6962
periodogram method. The vector *x* is divided into *NFFT* length
6997
6963
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,
7109
7075
"""
7110
7076
Plot the cross-spectral density.
7111
7077
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
-
7118
7078
The cross spectral density :math:`P_{xy}` by Welch's average
7119
7079
periodogram method. The vectors *x* and *y* are divided into
7120
7080
*NFFT* length segments. Each segment is detrended by function
@@ -7221,11 +7181,6 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
7221
7181
"""
7222
7182
Plot the magnitude spectrum.
7223
7183
7224
- Call signature::
7225
-
7226
- magnitude_spectrum(x, Fs=2, Fc=0, window=mlab.window_hanning,
7227
- pad_to=None, sides='default', **kwargs)
7228
-
7229
7184
Compute the magnitude spectrum of *x*. Data is padded to a
7230
7185
length of *pad_to* and the windowing function *window* is applied to
7231
7186
the signal.
@@ -7323,11 +7278,6 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
7323
7278
"""
7324
7279
Plot the angle spectrum.
7325
7280
7326
- Call signature::
7327
-
7328
- angle_spectrum(x, Fs=2, Fc=0, window=mlab.window_hanning,
7329
- pad_to=None, sides='default', **kwargs)
7330
-
7331
7281
Compute the angle spectrum (wrapped phase spectrum) of *x*.
7332
7282
Data is padded to a length of *pad_to* and the windowing function
7333
7283
*window* is applied to the signal.
@@ -7405,11 +7355,6 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
7405
7355
"""
7406
7356
Plot the phase spectrum.
7407
7357
7408
- Call signature::
7409
-
7410
- phase_spectrum(x, Fs=2, Fc=0, window=mlab.window_hanning,
7411
- pad_to=None, sides='default', **kwargs)
7412
-
7413
7358
Compute the phase spectrum (unwrapped angle spectrum) of *x*.
7414
7359
Data is padded to a length of *pad_to* and the windowing function
7415
7360
*window* is applied to the signal.
@@ -7554,14 +7499,6 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7554
7499
"""
7555
7500
Plot a spectrogram.
7556
7501
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
-
7565
7502
Compute and plot a spectrogram of data in *x*. Data are split into
7566
7503
*NFFT* length segments and the spectrum of each section is
7567
7504
computed. The windowing function *window* is applied to each
0 commit comments