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

Function bars

pytta/_plot.py:504–758  ·  view source on GitHub ↗

Plot the analysis data in fractinal octave bands. Parameters (default), (type): ----------------------------- * analyses (), (list): a list with Analyses. * xLabel ('Time [s]'), (str): x axis label. * yLabel ('Amplitude'), (str):

(analyses, xLabel, yLabel, yLim, xLim, title, decimalSep, barWidth,
         errorStyle, forceZeroCentering, overlapBars, color)

Source from the content-addressed store, hash-verified

502
503
504def bars(analyses, xLabel, yLabel, yLim, xLim, title, decimalSep, barWidth,
505 errorStyle, forceZeroCentering, overlapBars, color):
506 """
507 Plot the analysis data in fractinal octave bands.
508
509 Parameters (default), (type):
510 -----------------------------
511
512 * analyses (), (list):
513 a list with Analyses.
514
515 * xLabel ('Time [s]'), (str):
516 x axis label.
517
518 * yLabel ('Amplitude'), (str):
519 y axis label.
520
521 * yLim (), (list):
522 inferior and superior limits.
523
524 >>> yLim = [-100, 100]
525
526 * xLim (), (list):
527 bands limits.
528
529 >>> xLim = [100, 10000]
530
531 * title (), (str):
532 plot title
533
534 * decimalSep (','), (str):
535 may be dot or comma.
536
537 >>> decimalSep = ',' # in Brazil
538
539 * barWidth (0.75), float:
540 width of the bars from one fractional octave band.
541 0 < barWidth < 1.
542
543 * errorStyle ('standard'), str:
544 error curve style. May be 'laza' or None/'standard'.
545
546 * forceZeroCentering ('False'), bool:
547 force centered bars at Y zero.
548
549 * overlapBars ('False'), bool:
550 overlap bars. No side by side bars of different data.
551
552 * color (None), list:
553 list containing the color of each Analysis.
554
555
556 Return:
557 --------
558
559 matplotlib.figure.Figure object.
560 """
561 if isinstance(color, list):

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80

Tested by

no test coverage detected