MCPcopy Index your code
hub / github.com/PyTTaMaster/PyTTa / plot_bars

Method plot_bars

pytta/classes/analysis.py:727–821  ·  view source on GitHub ↗

Plot the analysis data in fractinal octave bands. Parameters (default), (type): ----------------------------- * dataLabel ('Analysis type [unit]'), (str): legend label for the current data * errorLabel ('Error'), (str): legen

(self, dataLabel:str=None, errorLabel:str=None,
                  xLabel:str=None, yLabel:str=None,
                  yLim:list=None, xLim:list=None, title:str=None, decimalSep:str=',',
                  barWidth:float=0.75, errorStyle:str=None,
                  forceZeroCentering:bool=False, overlapBars:bool=False,
                  color:list=None)

Source from the content-addressed store, hash-verified

725 return self.plot_bars(**kwargs)
726
727 def plot_bars(self, dataLabel:str=None, errorLabel:str=None,
728 xLabel:str=None, yLabel:str=None,
729 yLim:list=None, xLim:list=None, title:str=None, decimalSep:str=',',
730 barWidth:float=0.75, errorStyle:str=None,
731 forceZeroCentering:bool=False, overlapBars:bool=False,
732 color:list=None):
733 """Plot the analysis data in fractinal octave bands.
734
735 Parameters (default), (type):
736 -----------------------------
737
738 * dataLabel ('Analysis type [unit]'), (str):
739 legend label for the current data
740
741 * errorLabel ('Error'), (str):
742 legend label for the current data error
743
744 * xLabel ('Time [s]'), (str):
745 x axis label.
746
747 * yLabel ('Amplitude'), (str):
748 y axis label.
749
750 * yLim (), (list):
751 inferior and superior limits.
752
753 >>> yLim = [-100, 100]
754
755 * xLim (), (list):
756 bands limits.
757
758 >>> xLim = [100, 10000]
759
760 * title (), (str):
761 plot title
762
763 * decimalSep (','), (str):
764 may be dot or comma.
765
766 >>> decimalSep = ',' # in Brazil
767
768 * barWidth (0.75), float:
769 width of the bars from one fractional octave band.
770 0 < barWidth < 1.
771
772 * errorStyle ('standard'), str:
773 error curve style. May be 'laza' or None/'standard'.
774
775 * forceZeroCentering ('False'), bool:
776 force centered bars at Y zero.
777
778 * overlapBars ('False'), bool:
779 overlap bars. No side by side bars of different data.
780
781 * color (None), list:
782 list containing the color of each Analysis.
783
784

Callers 1

plotMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected