timml.plots.PlotTim.xsection#
- timml.plots.PlotTim.xsection(xy: list[tuple[float]] | None = None, labels=True, params=False, ax=None, fmt=None, units=None, horizontal_axis: Literal['x', 'y', 's'] = 's')#
Plot cross-section of model.
Note: this method does not plot elements at this time. It does plot cross-section inhoms if the model is a cross-section model (ModelXsection).
- Parameters:
xy (list of tuples, optional) – list of tuples with coordinates of the form [(x0, y0), (x1, y1)]. If not provided, a cross section with length 1 is plotted.
labels (bool, optional) – add layer numbering labels to plot
params (bool, optional) – add parameter values to plot
ax (matplotlib.Axes, optional) – axes to plot on, default is None which creates a new figure
fmt (str, optional) – format string for parameter values, e.g. ‘.2f’ for 2 decimals
units (dict, optional) – dictionary with units for parameters, e.g. {‘k’: ‘m/d’, ‘c’: ‘d’}
horizontal_axis (str) – ‘s’ for distance along cross-section on x-axis (default) ‘x’ for using x-coordinates on x-axis ‘y’ for using y-coordinates on x-axis
- Returns:
ax – axes with plot
- Return type:
matplotlib.Axes