spatial._FM_geometry._GeometryFMPlotter

spatial._FM_geometry._GeometryFMPlotter(self, geometry)

Plot GeometryFM

Examples

>>> ds = mikeio.read("HD2D.dfsu")
>>> g = ds.geometry
>>> g.plot()          # bathymetry (as patches)
>>> g.plot.contour()  # bathymetry contours
>>> g.plot.contourf() # filled bathymetry contours
>>> g.plot.mesh()     # mesh only
>>> g.plot.outline()  # domain outline only
>>> g.plot.boundary_nodes()

Methods

Name Description
boundary_nodes Plot mesh boundary nodes and their code values
contour Plot bathymetry as contour lines
contourf Plot bathymetry as filled contours
mesh Plot mesh only
outline Plot domain outline (using the boundary_polylines property)

boundary_nodes

spatial._FM_geometry._GeometryFMPlotter.boundary_nodes(
    boundary_names=None
    figsize=None
    ax=None
)

Plot mesh boundary nodes and their code values

contour

spatial._FM_geometry._GeometryFMPlotter.contour(ax=None, figsize=None, **kwargs)

Plot bathymetry as contour lines

contourf

spatial._FM_geometry._GeometryFMPlotter.contourf(
    ax=None
    figsize=None
    **kwargs
)

Plot bathymetry as filled contours

mesh

spatial._FM_geometry._GeometryFMPlotter.mesh(
    title='Mesh'
    figsize=None
    ax=None
)

Plot mesh only

outline

spatial._FM_geometry._GeometryFMPlotter.outline(
    title='Outline'
    figsize=None
    ax=None
)

Plot domain outline (using the boundary_polylines property)