@@ -6110,12 +6110,9 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6110
6110
"""
6111
6111
Create a pseudocolor plot with a non-regular rectangular grid.
6112
6112
6113
- Call signatures ::
6113
+ Call signature ::
6114
6114
6115
- ax.pcolorfast(C, **kwargs)
6116
- ax.pcolorfast(xr, yr, C, **kwargs)
6117
- ax.pcolorfast(x, y, C, **kwargs)
6118
- ax.pcolorfast(X, Y, C, **kwargs)
6115
+ ax.pcolorfast([X, Y], C, /, **kwargs)
6119
6116
6120
6117
This method is similar to ~.Axes.pcolor` and `~.Axes.pcolormesh`.
6121
6118
It's designed to provide the fastest pcolor-type plotting with the
@@ -6135,24 +6132,24 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6135
6132
Parameters
6136
6133
----------
6137
6134
C : array-like(M, N)
6138
- A scalar 2D array. The values will be color-mapped.
6139
- *C* may be a masked array .
6135
+ A 2D array or masked array. The values will be color-mapped.
6136
+ This argument can only be passed positionally .
6140
6137
6141
- x, y : tuple or array-like
6138
+ X, Y : tuple or array-like, default: ``(0, N)``, ``(0, M)``
6142
6139
*X* and *Y* are used to specify the coordinates of the
6143
6140
quadilaterals. There are different ways to do this:
6144
6141
6145
- - Use tuples ``xr =(xmin, xmax)`` and ``yr =(ymin, ymax)`` to define
6142
+ - Use tuples ``X =(xmin, xmax)`` and ``Y =(ymin, ymax)`` to define
6146
6143
a *uniform rectiangular grid*.
6147
6144
6148
6145
The tuples define the outer edges of the grid. All individual
6149
6146
quadrilaterals will be of the same size. This is the fastest
6150
6147
version.
6151
6148
6152
- - Use 1D arrays *x *, *y * to specify a *non-uniform rectangular
6149
+ - Use 1D arrays *X *, *Y * to specify a *non-uniform rectangular
6153
6150
grid*.
6154
6151
6155
- In this case *x * and *y * have to be monotonic 1D arrays of length
6152
+ In this case *X * and *Y * have to be monotonic 1D arrays of length
6156
6153
*N+1* and *M+1*, specifying the x and y boundaries of the cells.
6157
6154
6158
6155
The speed is intermediate. Note: The grid is checked, and if
@@ -6169,7 +6166,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6169
6166
produce faster and more compact output using ps, pdf, and
6170
6167
svg backends, however.
6171
6168
6172
- Leaving out *x* and *y* defaults to ``xr=(0, N)``, ``yr=(O, M)`` .
6169
+ These arguments can only be passed positionally .
6173
6170
6174
6171
cmap : str or `~matplotlib.colors.Colormap`, optional
6175
6172
A Colormap instance or registered colormap name. The colormap
@@ -6321,32 +6318,7 @@ def clabel(self, CS, *args, **kwargs):
6321
6318
return CS .clabel (* args , ** kwargs )
6322
6319
clabel .__doc__ = mcontour .ContourSet .clabel .__doc__
6323
6320
6324
- @docstring .dedent_interpd
6325
- def table (self , ** kwargs ):
6326
- """
6327
- Add a table to the current axes.
6328
-
6329
- Call signature::
6330
-
6331
- table(cellText=None, cellColours=None,
6332
- cellLoc='right', colWidths=None,
6333
- rowLabels=None, rowColours=None, rowLoc='left',
6334
- colLabels=None, colColours=None, colLoc='center',
6335
- loc='bottom', bbox=None)
6336
-
6337
- Returns a :class:`matplotlib.table.Table` instance. Either `cellText`
6338
- or `cellColours` must be provided. For finer grained control over
6339
- tables, use the :class:`~matplotlib.table.Table` class and add it to
6340
- the axes with :meth:`~matplotlib.axes.Axes.add_table`.
6341
-
6342
- Thanks to John Gill for providing the class and table.
6343
-
6344
- kwargs control the :class:`~matplotlib.table.Table`
6345
- properties:
6346
-
6347
- %(Table)s
6348
- """
6349
- return mtable .table (self , ** kwargs )
6321
+ table = mtable .table
6350
6322
6351
6323
#### Data analysis
6352
6324
@@ -6983,12 +6955,6 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
6983
6955
r"""
6984
6956
Plot the power spectral density.
6985
6957
6986
- Call signature::
6987
-
6988
- psd(x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
6989
- window=mlab.window_hanning, noverlap=0, pad_to=None,
6990
- sides='default', scale_by_freq=None, return_line=None, **kwargs)
6991
-
6992
6958
The power spectral density :math:`P_{xx}` by Welch's average
6993
6959
periodogram method. The vector *x* is divided into *NFFT* length
6994
6960
segments. Each segment is detrended by function *detrend* and
@@ -7106,12 +7072,6 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
7106
7072
"""
7107
7073
Plot the cross-spectral density.
7108
7074
7109
- Call signature::
7110
-
7111
- csd(x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
7112
- window=mlab.window_hanning, noverlap=0, pad_to=None,
7113
- sides='default', scale_by_freq=None, return_line=None, **kwargs)
7114
-
7115
7075
The cross spectral density :math:`P_{xy}` by Welch's average
7116
7076
periodogram method. The vectors *x* and *y* are divided into
7117
7077
*NFFT* length segments. Each segment is detrended by function
@@ -7218,11 +7178,6 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
7218
7178
"""
7219
7179
Plot the magnitude spectrum.
7220
7180
7221
- Call signature::
7222
-
7223
- magnitude_spectrum(x, Fs=2, Fc=0, window=mlab.window_hanning,
7224
- pad_to=None, sides='default', **kwargs)
7225
-
7226
7181
Compute the magnitude spectrum of *x*. Data is padded to a
7227
7182
length of *pad_to* and the windowing function *window* is applied to
7228
7183
the signal.
@@ -7320,11 +7275,6 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
7320
7275
"""
7321
7276
Plot the angle spectrum.
7322
7277
7323
- Call signature::
7324
-
7325
- angle_spectrum(x, Fs=2, Fc=0, window=mlab.window_hanning,
7326
- pad_to=None, sides='default', **kwargs)
7327
-
7328
7278
Compute the angle spectrum (wrapped phase spectrum) of *x*.
7329
7279
Data is padded to a length of *pad_to* and the windowing function
7330
7280
*window* is applied to the signal.
@@ -7402,11 +7352,6 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
7402
7352
"""
7403
7353
Plot the phase spectrum.
7404
7354
7405
- Call signature::
7406
-
7407
- phase_spectrum(x, Fs=2, Fc=0, window=mlab.window_hanning,
7408
- pad_to=None, sides='default', **kwargs)
7409
-
7410
7355
Compute the phase spectrum (unwrapped angle spectrum) of *x*.
7411
7356
Data is padded to a length of *pad_to* and the windowing function
7412
7357
*window* is applied to the signal.
@@ -7551,14 +7496,6 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7551
7496
"""
7552
7497
Plot a spectrogram.
7553
7498
7554
- Call signature::
7555
-
7556
- specgram(x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
7557
- window=mlab.window_hanning, noverlap=128,
7558
- cmap=None, xextent=None, pad_to=None, sides='default',
7559
- scale_by_freq=None, mode='default', scale='default',
7560
- **kwargs)
7561
-
7562
7499
Compute and plot a spectrogram of data in *x*. Data are split into
7563
7500
*NFFT* length segments and the spectrum of each section is
7564
7501
computed. The windowing function *window* is applied to each
0 commit comments