dataset._data_plot._DatasetPlotter

dataset._data_plot._DatasetPlotter(self, ds)

Methods

Name Description
scatter Plot data from two DataArrays against each other in a scatter plot

scatter

dataset._data_plot._DatasetPlotter.scatter(
    x
    y
    ax=None
    figsize=None
    **kwargs
)

Plot data from two DataArrays against each other in a scatter plot

Parameters

Name Type Description Default
x str or int Identifier for first DataArray required
y str or int Identifier for second DataArray required
ax Axes | None Adding to existing axis, instead of creating new fig None
figsize tuple[float, float] | None specify size of figure None
title axes title required
**kwargs Any {}

Returns

Name Type Description
<matplotlib.axes>

Examples

>>> ds = mikeio.read("oresund_sigma_z.dfsu")
>>> ds.plot.scatter(x="Salinity", y="Temperature", title="S-vs-T")
>>> ds.plot.scatter(x=0, y=1, figsize=(9,9), marker='*')