timflow.transient.plots.PlotTransient.topview_and_xsection#

timflow.transient.plots.PlotTransient.topview_and_xsection(win=None, axes=None, figsize=None, topfigfrac=0.8, layers=None, horizontal_axis: Literal['x', 'y'] = 'x', **xsection_kwargs)#

Plot top-view above and cross-section below.

This method plots the top-view and cross-section side by side in a single figure.

Parameters:
  • win (list or tuple) – [x1, x2, y1, y2]

  • axes (list of matplotlib.Axes, optional) – axes to plot on, default is None which creates a new figure

  • figsize (tuple of 2 values) – size of figure

  • topfigfrac (float) – fraction of figure width for top-view plot

  • layers (int or list of ints, optional) – layers to plot, default is None which plots elements in all layers

  • horizontal_axis (str) – ‘x’ for using x-coordinates on x-axis ‘y’ for using y-coordinates on x-axis

  • **xsection_kwargs (dict) – additional keyword arguments passed to xsection()

Returns:

axes – axes with plots [topview_ax, xsection_ax]

Return type:

list of matplotlib.Axes