dataset._data_plot._DataArrayPlotterGrid1D
self, da) dataset._data_plot._DataArrayPlotterGrid1D(
Plot a DataArray with a Grid1D geometry.
Examples
>>> da = mikeio.read("tide1.dfs1")["Level"]
>>> da.plot()
>>> da.plot.line()
>>> da.plot.timeseries()
>>> da.plot.imshow()
>>> da.plot.pcolormesh()
>>> da.plot.hist()
Methods
Name | Description |
---|---|
hist | Plot DataArray as histogram (using ax.hist). |
imshow | Plot as 2d. |
line | Plot as spatial lines. |
pcolormesh | Plot multiple lines as 2d color plot. |
timeseries | Plot as timeseries. |
hist
dataset._data_plot._DataArrayPlotterGrid1D.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> |
imshow
dataset._data_plot._DataArrayPlotterGrid1D.imshow(=None,
ax=None,
figsize**kwargs,
)
Plot as 2d.
line
=None, figsize=None, **kwargs) dataset._data_plot._DataArrayPlotterGrid1D.line(ax
Plot as spatial lines.
pcolormesh
dataset._data_plot._DataArrayPlotterGrid1D.pcolormesh(=None,
ax=None,
figsize=None,
title**kwargs,
)
Plot multiple lines as 2d color plot.
timeseries
dataset._data_plot._DataArrayPlotterGrid1D.timeseries(=None,
ax=None,
figsize**kwargs,
)
Plot as timeseries.