compare_two_accel#
- PySeismoSoil.helper_site_response.compare_two_accel(input_accel: ndarray, output_accel: ndarray, smooth: bool = True, input_accel_label: str = 'Input', output_accel_label: str = 'Output', amplification_ylabel: str = 'Amplification', phase_shift_ylabel: str = 'Phase shift [rad]') tuple[matplotlib.figure.Figure, matplotlib.axes._axes.Axes] [source]#
Compare two acceleration time histories: plot comparison figures showing two time histories and the transfer function between them.
- Parameters:
input_accel (np.ndarray) – Input acceleration. (2 columns: time and acceleration.)
output_accel (np.ndarray) – Output acceleration. (2 columns: time and acceleration.)
smooth (bool) – In the comparison plot, whether to also show the smoothed amplification factor.
input_accel_label (str) – The text label for the input acceleration in the figure legend.
output_accel_label (str) – The text label for the output acceleration in the figure legend.
amplification_ylabel (str) – The Y label for amplification
phase_shift_ylabel (str) – The Y label for the phase shift
- Returns:
fig (Figure) – The figure object created in this function.
ax (Axes) – The axes object created in this function.