@@ -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
@@ -6141,21 +6138,21 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6141
6138
A scalar 2D array. The values will be color-mapped.
6142
6139
*C* may be a masked array.
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,8 +6169,6 @@ 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)``.
6176
-
6177
6172
cmap : str or `~matplotlib.colors.Colormap`, optional
6178
6173
A Colormap instance or registered colormap name. The colormap
6179
6174
maps the *C* values to colors. Defaults to :rc:`image.cmap`.
@@ -6324,32 +6319,7 @@ def clabel(self, CS, *args, **kwargs):
6324
6319
return CS .clabel (* args , ** kwargs )
6325
6320
clabel .__doc__ = mcontour .ContourSet .clabel .__doc__
6326
6321
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 )
6322
+ table = mtable .table
6353
6323
6354
6324
#### Data analysis
6355
6325
@@ -6986,12 +6956,6 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
6986
6956
r"""
6987
6957
Plot the power spectral density.
6988
6958
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
6959
The power spectral density :math:`P_{xx}` by Welch's average
6996
6960
periodogram method. The vector *x* is divided into *NFFT* length
6997
6961
segments. Each segment is detrended by function *detrend* and
@@ -7109,12 +7073,6 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
7109
7073
"""
7110
7074
Plot the cross-spectral density.
7111
7075
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
7076
The cross spectral density :math:`P_{xy}` by Welch's average
7119
7077
periodogram method. The vectors *x* and *y* are divided into
7120
7078
*NFFT* length segments. Each segment is detrended by function
@@ -7221,11 +7179,6 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
7221
7179
"""
7222
7180
Plot the magnitude spectrum.
7223
7181
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
7182
Compute the magnitude spectrum of *x*. Data is padded to a
7230
7183
length of *pad_to* and the windowing function *window* is applied to
7231
7184
the signal.
@@ -7323,11 +7276,6 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
7323
7276
"""
7324
7277
Plot the angle spectrum.
7325
7278
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
7279
Compute the angle spectrum (wrapped phase spectrum) of *x*.
7332
7280
Data is padded to a length of *pad_to* and the windowing function
7333
7281
*window* is applied to the signal.
@@ -7405,11 +7353,6 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None,
7405
7353
"""
7406
7354
Plot the phase spectrum.
7407
7355
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
7356
Compute the phase spectrum (unwrapped angle spectrum) of *x*.
7414
7357
Data is padded to a length of *pad_to* and the windowing function
7415
7358
*window* is applied to the signal.
@@ -7554,14 +7497,6 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7554
7497
"""
7555
7498
Plot a spectrogram.
7556
7499
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
7500
Compute and plot a spectrogram of data in *x*. Data are split into
7566
7501
*NFFT* length segments and the spectrum of each section is
7567
7502
computed. The windowing function *window* is applied to each
0 commit comments