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=',')
| 413 | |
| 414 | |
| 415 | def 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 | |
| 464 | def plot_bars(*analyses, xLabel:str=None, yLabel:str=None, |
| 465 | yLim:list=None, xLim:list=None, title:str=None, decimalSep:str=',', |
nothing calls this directly
no test coverage detected