plot_Vs_profile#
- PySeismoSoil.helper_site_response.plot_Vs_profile(vs_profile: np.ndarray, fig: Figure | None = None, ax: Axes | None = None, figsize: tuple[float, float] = (2.6, 3.2), dpi: float = 100, title: str | None = None, label: str | None = None, c: list[float] | str = 'k', lw: float = 1.75, max_depth: float | None = None, **other_kwargs: dict[Any, Any]) tuple[Figure, Axes, Line2D][source]#
Plot a Vs profile from a 2D numpy array.
- Parameters:
vs_profile (np.ndarray) –
- Shear-wave velocity profile, containing at least two columns:
thickness of layers
shear wave velocity of layers
fig (Figure | None, default=None) – Figure object. If None, a new figure will be created.
ax (Axes | None, default=None) – Axes object. If None, a new axes will be created.
figsize (tuple[float, float], default=(2.6, 3.2)) – Figure size in inches, as a tuple of two numbers. The figure size of
fig(if notNone) will override this parameter.dpi (float, default=100) – Figure resolution. The dpi of
fig(if notNone) will override this parameter.title (str | None, default=None) – The title of the figure.
label (str | None, default=None) – The text label for the legend.
c (list[float] | str, default='k') – Line color.
lw (float, default=1.75) – Line width.
max_depth (float | None, default=None) – Maximum depth of the soil profile. If None, it is automatically determined from
vs_profile. Note that setting max_depth to be smaller than the actual depth (determined invs_profile) could make the plot look strange.**other_kwargs (dict[Any, Any]) – Other keyword arguments to be passed to matplotlib.pyplot.plot()
- Returns:
fig (Figure) – The figure object being created or being passed into this function.
ax (Axes) – The axes object being created or being passed into this function.
h_line (Line2D) – The line object.