Visualization

(Work in progress)

This section contains details related to the various helper functions that are available to visualize the results of a simulation.

draw(d, l, interior=False)

Plot the values of the domain.

Parameters:
  • d (Domain) –

    The domain to plot values for.

  • l (str) –

    The label to use for the plot.

Source code in splitfxm/visualize.py
def draw(d: Domain, l: str, interior=False):
    """
    Plot the values of the domain.

    Parameters
    ----------
    d : Domain
        The domain to plot values for.
    l : str
        The label to use for the plot.
    """

    plot(d.positions(interior), d.values(interior), "-o", label=l)