import mikeio
= mikeio.read("../data/oresund_sigma_z.dfsu")
ds = ds.sel(x=333934.1, y=6158101.5)
dsp = dsp["Temperature"]
da da.plot()
dataset._data_plot._DataArrayPlotterFMVerticalColumn
self, da) dataset._data_plot._DataArrayPlotterFMVerticalColumn(
Plot a DataArray with a GeometryFMVerticalColumn geometry.
If DataArray has multiple time steps, the first step will be plotted.
Examples
=False, marker='o') da.plot(extrapolate
da.plot.pcolormesh()
da.plot.hist()
(array([1., 0., 0., 1., 1., 0., 1., 4., 1., 3.]),
array([17.02435303, 17.08300972, 17.14166641, 17.2003231 , 17.2589798 ,
17.3176384 , 17.37629509, 17.43495178, 17.49360847, 17.55226517,
17.61092186]),
<BarContainer object of 10 artists>)
Methods
Name | Description |
---|---|
hist | Plot DataArray as histogram (using ax.hist). |
line | Plot data as vertical lines. |
pcolormesh | Plot data as coloured patches. |
hist
dataset._data_plot._DataArrayPlotterFMVerticalColumn.hist(=None,
ax=None,
figsize=None,
title**kwargs,
)
Plot DataArray as histogram (using ax.hist).
Parameters
Name | Type | Description | Default |
---|---|---|---|
bins | (int or sequence or str) | If bins is an integer, it defines the number of equal-width bins in the range. If bins is a sequence, it defines the bin edges, including the left edge of the first bin and the right edge of the last bin. by default: rcParams[“hist.bins”] (default: 10) | 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 | str | None | axes title | None |
**kwargs | Any | additional arguments passed to the plotting function | {} |
See Also
matplotlib.pyplot.hist
Returns
Name | Type | Description |
---|---|---|
<matplotlib.axes> |
line
dataset._data_plot._DataArrayPlotterFMVerticalColumn.line(=None,
ax=None,
figsize=True,
extrapolate**kwargs,
)
Plot data as vertical lines.
pcolormesh
dataset._data_plot._DataArrayPlotterFMVerticalColumn.pcolormesh(=None,
ax=None,
figsize=None,
title**kwargs,
)
Plot data as coloured patches.