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

Method plot_time_dB

pytta/classes/signal.py:602–668  ·  view source on GitHub ↗

Plots the signal in decibels 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 ('A

(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

600 return fig
601
602 def plot_time_dB(self, xLabel:str=None, yLabel:str=None,
603 yLim:list=None, xLim:list=None, title:str=None,
604 decimalSep:str=',', timeUnit:str='s'):
605 """Plots the signal in decibels in time domain.
606
607 xLabel, yLabel, and title are saved for the next plots when provided.
608
609 Parameters (default), (type):
610 ------------------------------
611
612 * xLabel ('Time [s]'), (str):
613 x axis label.
614
615 * yLabel ('Amplitude'), (str):
616 y axis label.
617
618 * yLim (), (list):
619 inferior and superior limits.
620
621 >>> yLim = [-100, 100]
622
623 * xLim (), (list):
624 left and right limits
625
626 >>> xLim = [0, 15]
627
628 * title (), (str):
629 plot title
630
631 * decimalSep (','), (str):
632 may be dot or comma.
633
634 >>> decimalSep = ',' # in Brazil
635
636 * timeUnit ('s'), (str):
637 'ms' or 's'.
638
639
640 Return:
641 --------
642
643 matplotlib.figure.Figure object.
644 """
645 if xLabel is not None:
646 self.timedBXLabel = xLabel
647 else:
648 if hasattr(self, 'timedBXLabel'):
649 if self.timedBXLabel is not None:
650 xLabel = self.timedBXLabel
651
652 if yLabel is not None:
653 self.timedBYLabel = yLabel
654 else:
655 if hasattr(self, 'timedBYLabel'):
656 if self.timedBYLabel is not None:
657 yLabel = self.timedBYLabel
658
659 if title is not None:

Callers 5

plot_time_dBMethod · 0.45
roomir_calc_IR.pyFile · 0.45
roomir_calc_RT.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected