Plot provided SignalObjs togheter in decibels in time domain. Parameters (default), (type): ----------- * sigObjs (), (SignalObj): non-keyworded input arguments with N SignalObjs. * xLabel ('Time [s]'), (str): x axis label. *
(*sigObjs, xLabel:str=None, yLabel:str=None, yLim:list=None,
xLim:list=None, title:str=None, decimalSep:str=',',
timeUnit:str='s')
| 359 | return |
| 360 | |
| 361 | def plot_time_dB(*sigObjs, xLabel:str=None, yLabel:str=None, yLim:list=None, |
| 362 | xLim:list=None, title:str=None, decimalSep:str=',', |
| 363 | timeUnit:str='s'): |
| 364 | """Plot provided SignalObjs togheter in decibels in time domain. |
| 365 | |
| 366 | Parameters (default), (type): |
| 367 | ----------- |
| 368 | |
| 369 | * sigObjs (), (SignalObj): |
| 370 | non-keyworded input arguments with N SignalObjs. |
| 371 | |
| 372 | * xLabel ('Time [s]'), (str): |
| 373 | x axis label. |
| 374 | |
| 375 | * yLabel ('Amplitude'), (str): |
| 376 | y axis label. |
| 377 | |
| 378 | * yLim (), (list): |
| 379 | inferior and superior limits. |
| 380 | |
| 381 | >>> yLim = [-100, 100] |
| 382 | |
| 383 | * xLim (), (list): |
| 384 | left and right limits |
| 385 | |
| 386 | >>> xLim = [0, 15] |
| 387 | |
| 388 | * title (), (str): |
| 389 | plot title |
| 390 | |
| 391 | * decimalSep (','), (str): |
| 392 | may be dot or comma. |
| 393 | |
| 394 | >>> decimalSep = ',' # in Brazil |
| 395 | |
| 396 | * timeUnit ('s'), (str): |
| 397 | 'ms' or 's'. |
| 398 | |
| 399 | |
| 400 | Return: |
| 401 | -------- |
| 402 | |
| 403 | matplotlib.figure.Figure object. |
| 404 | """ |
| 405 | realSigObjs = \ |
| 406 | _remove_non_(SignalObj, sigObjs, msgPrefix='plot_time_dB:') |
| 407 | if len(realSigObjs) > 0: |
| 408 | fig = plot.time_dB(realSigObjs, xLabel, yLabel, yLim, xLim, title, |
| 409 | decimalSep, timeUnit) |
| 410 | return fig |
| 411 | else: |
| 412 | return |
| 413 | |
| 414 | |
| 415 | def plot_freq(*sigObjs, smooth:bool=False, xLabel:str=None, yLabel:str=None, |
nothing calls this directly
no test coverage detected