timflow.transient.plots.PlotTransient.xsection ============================================== .. py:method:: timflow.transient.plots.PlotTransient.xsection(xy: Optional[list[tuple[float]]] = None, labels=True, params=False, names=False, ax=None, fmt=None, units=None, hstar=None, horizontal_axis: Literal['x', 'y', 's'] = 's', sep: Literal[', ', '\n'] = ', ', **kwargs) Plot cross-section of model. This is a shared method that handles cross-section plotting for both steady and transient models. The method automatically adapts the parameter labels based on the model type. :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 for 3D models. For cross-section models the left and right are derived from the elements. :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 names: add inhomogeneity names to plot, only supported for cross-section models. :type names: 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 :param hstar: override hstar value for plotting water level in transient 1D inhomogeneities that use hstar, useful for plotting pretty cross-sections when reference level is not equal to 0. :type hstar: float, optional :param sep: Separator between parameters, either ", " or "\n" :type sep: str :param \*\*kwargs: passed on to all ax.plot calls :returns: **ax** -- axes with plot :rtype: matplotlib.Axes .. !! processed by numpydoc !!