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

Method plot_time

pytta/classes/signal.py:534–600  ·  view source on GitHub ↗

Plots the signal in time domain. xLabel, yLabel, and title are saved for the next plots when provided. Parameters (default), (type): ------------------------------ * xLabel ('Time [s]'), (str): x axis label. * yLabel ('Amplitude'),

(self, xLabel:str=None, yLabel:str=None,
                yLim:list=None, xLim:list=None, title:str=None,
                decimalSep:str=',',timeUnit:str='s')

Source from the content-addressed store, hash-verified

532 return
533
534 def plot_time(self, xLabel:str=None, yLabel:str=None,
535 yLim:list=None, xLim:list=None, title:str=None,
536 decimalSep:str=',',timeUnit:str='s'):
537 """Plots the signal in time domain.
538
539 xLabel, yLabel, and title are saved for the next plots when provided.
540
541 Parameters (default), (type):
542 ------------------------------
543
544 * xLabel ('Time [s]'), (str):
545 x axis label.
546
547 * yLabel ('Amplitude'), (str):
548 y axis label.
549
550 * yLim (), (list):
551 inferior and superior limits.
552
553 >>> yLim = [-100, 100]
554
555 * xLim (), (list):
556 left and right limits
557
558 >>> xLim = [0, 15]
559
560 * title (), (str):
561 plot title
562
563 * decimalSep (','), (str):
564 may be dot or comma.
565
566 >>> decimalSep = ',' # in Brazil
567
568 * timeUnit ('s'), (str):
569 'ms' or 's'.
570
571
572 Return:
573 --------
574
575 matplotlib.figure.Figure object.
576 """
577 if xLabel is not None:
578 self.timeXLabel = xLabel
579 else:
580 if hasattr(self, 'timeXLabel'):
581 if self.timeXLabel is not None:
582 xLabel = self.timeXLabel
583
584 if yLabel is not None:
585 self.timeYLabel = yLabel
586 else:
587 if hasattr(self, 'timeYLabel'):
588 if self.timeYLabel is not None:
589 yLabel = self.timeYLabel
590
591 if title is not None:

Callers 4

plot_timeMethod · 0.45
frf_measurement.pyFile · 0.45
filtered_signal.pyFile · 0.45
roomir_calc_IR.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected