marEx.plotX.unstructured.UnstructuredPlotter

class marEx.plotX.unstructured.UnstructuredPlotter(xarray_obj, dimensions=None, coordinates=None)[source]

Bases: PlotterBase

Plotter for unstructured oceanographic data on triangular meshes.

Initialise UnstructuredPlotter.

Parameters:
__init__(xarray_obj, dimensions=None, coordinates=None)[source]

Initialise UnstructuredPlotter.

Parameters:
Return type:

None

Methods

__init__(xarray_obj[, dimensions, coordinates])

Initialise UnstructuredPlotter.

animate(config[, plot_dir, file_name, ...])

Create an animation from time series data

clim_robust(data, issym[, percentiles])

Compute robust colour limits from data percentiles.

multi_plot(config[, col, col_wrap])

Make wrapped subplots with given configuration

plot(ax[, cmap, clim, norm])

Implement plotting for unstructured data.

setup_id_plot_params([cmap])

Set up parameters for plotting IDs

setup_plot_params()

Set up common plotting parameters

single_plot(config[, ax])

Make a single plot with given configuration

specify_grid([fpath_tgrid, fpath_ckdtree])

Set the path to the unstructured grid files.

__init__(xarray_obj, dimensions=None, coordinates=None)[source]

Initialise UnstructuredPlotter.

Parameters:
Return type:

None

specify_grid(fpath_tgrid=None, fpath_ckdtree=None)[source]

Set the path to the unstructured grid files.

Parameters:
Return type:

None

plot(ax, cmap='viridis', clim=None, norm=None)[source]

Implement plotting for unstructured data.

Parameters:
Return type:

Tuple[Axes, TriMesh | QuadMesh]