MCPcopy Create free account
hub / github.com/PyTTaMaster/PyTTa / plot_freq

Function plot_freq

pytta/functions.py:415–462  ·  view source on GitHub ↗

Plot provided SignalObjs magnitudes togheter in frequency domain. Parameters (default), (type): ----------------------------- * sigObjs (), (SignalObj): non-keyworded input arguments with N SignalObjs. * xLabel ('Time [s]'), (str): x axis l

(*sigObjs, smooth:bool=False, xLabel:str=None, yLabel:str=None,
              yLim:list=None, xLim:list=None, title:str=None,
              decimalSep:str=',')

Source from the content-addressed store, hash-verified

413
414
415def plot_freq(*sigObjs, smooth:bool=False, xLabel:str=None, yLabel:str=None,
416 yLim:list=None, xLim:list=None, title:str=None,
417 decimalSep:str=','):
418 """Plot provided SignalObjs magnitudes togheter in frequency domain.
419
420 Parameters (default), (type):
421 -----------------------------
422
423 * sigObjs (), (SignalObj):
424 non-keyworded input arguments with N SignalObjs.
425
426 * xLabel ('Time [s]'), (str):
427 x axis label.
428
429 * yLabel ('Amplitude'), (str):
430 y axis label.
431
432 * yLim (), (list):
433 inferior and superior limits.
434
435 >>> yLim = [-100, 100]
436
437 * xLim (), (list):
438 left and right limits
439
440 >>> xLim = [15, 21000]
441
442 * title (), (str):
443 plot title
444
445 * decimalSep (','), (str):
446 may be dot or comma.
447
448 >>> decimalSep = ',' # in Brazil
449
450 Return:
451 --------
452
453 matplotlib.figure.Figure object.
454 """
455 realSigObjs = \
456 _remove_non_(SignalObj, sigObjs, msgPrefix='plot_freq:')
457 if len(realSigObjs) > 0:
458 fig = plot.freq(realSigObjs, smooth, xLabel, yLabel, yLim, xLim, title,
459 decimalSep)
460 return fig
461 else:
462 return
463
464def plot_bars(*analyses, xLabel:str=None, yLabel:str=None,
465 yLim:list=None, xLim:list=None, title:str=None, decimalSep:str=',',

Callers

nothing calls this directly

Calls 1

_remove_non_Function · 0.85

Tested by

no test coverage detected