timml.plots.PlotTim.xsection ============================ .. py:method:: timml.plots.PlotTim.xsection(xy: Optional[list[tuple[float]]] = 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). :param xy: list of tuples with coordinates of the form [(x0, y0), (x1, y1)]. If not provided, a cross section with length 1 is plotted. :type xy: list of tuples, optional :param labels: add layer numbering labels to plot :type labels: bool, optional :param params: add parameter values to plot :type params: bool, optional :param ax: axes to plot on, default is None which creates a new figure :type ax: matplotlib.Axes, optional :param fmt: format string for parameter values, e.g. '.2f' for 2 decimals :type fmt: str, optional :param units: dictionary with units for parameters, e.g. {'k': 'm/d', 'c': 'd'} :type units: dict, optional :param horizontal_axis: '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 :type horizontal_axis: str :returns: **ax** -- axes with plot :rtype: matplotlib.Axes .. !! processed by numpydoc !!