MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / angle_spectrum

Method angle_spectrum

lib/matplotlib/axes/_axes.py:8308–8373  ·  view source on GitHub ↗

Plot the angle spectrum. Compute the angle spectrum (wrapped phase spectrum) of *x*. Data is padded to a length of *pad_to* and the windowing function *window* is applied to the signal. Parameters ---------- x : 1-D array or sequence

(self, x, Fs=None, Fc=None, window=None,
                       pad_to=None, sides=None, **kwargs)

Source from the content-addressed store, hash-verified

8306 @_preprocess_data(replace_names=["x"])
8307 @_docstring.interpd
8308 def angle_spectrum(self, x, Fs=None, Fc=None, window=None,
8309 pad_to=None, sides=None, **kwargs):
8310 """
8311 Plot the angle spectrum.
8312
8313 Compute the angle spectrum (wrapped phase spectrum) of *x*.
8314 Data is padded to a length of *pad_to* and the windowing function
8315 *window* is applied to the signal.
8316
8317 Parameters
8318 ----------
8319 x : 1-D array or sequence
8320 Array or sequence containing the data.
8321
8322 %(Spectral)s
8323
8324 %(Single_Spectrum)s
8325
8326 Fc : int, default: 0
8327 The center frequency of *x*, which offsets the x extents of the
8328 plot to reflect the frequency range used when a signal is acquired
8329 and then filtered and downsampled to baseband.
8330
8331 Returns
8332 -------
8333 spectrum : 1-D array
8334 The values for the angle spectrum in radians (real valued).
8335
8336 freqs : 1-D array
8337 The frequencies corresponding to the elements in *spectrum*.
8338
8339 line : `~matplotlib.lines.Line2D`
8340 The line created by this function.
8341
8342 Other Parameters
8343 ----------------
8344 data : indexable object, optional
8345 DATA_PARAMETER_PLACEHOLDER
8346
8347 **kwargs
8348 Keyword arguments control the `.Line2D` properties:
8349
8350 %(Line2D:kwdoc)s
8351
8352 See Also
8353 --------
8354 magnitude_spectrum
8355 Plots the magnitudes of the corresponding frequencies.
8356 phase_spectrum
8357 Plots the unwrapped version of this function.
8358 specgram
8359 Can plot the angle spectrum of segments within the signal in a
8360 colormap.
8361 """
8362 if Fc is None:
8363 Fc = 0
8364
8365 spec, freqs = mlab.angle_spectrum(x=x, Fs=Fs, window=window,

Callers 3

angle_spectrumFunction · 0.80
test_spectrumFunction · 0.80
spectrum_demo.pyFile · 0.80

Calls 3

plotMethod · 0.95
set_xlabelMethod · 0.80
set_ylabelMethod · 0.80

Tested by 1

test_spectrumFunction · 0.64