sdf_xarray.plotting.animate#
- sdf_xarray.plotting.animate(data, fps=10, min_percentile=0, max_percentile=100, title=None, display_sdf_name=False, t=None, ax=None, **kwargs)[source]#
Generate an animation using an xarray.DataArray
- Parameters:
data (
DataArray) – DataArray containing the target datafps (
float) – Frames per second for the animationmin_percentile (
float) – Minimum percentile of the datamax_percentile (
float) – Maximum percentile of the datadisplay_sdf_name (
bool) – Display the sdf file name in the animation titlet (
str|None) – Coordinate for t axis (the coordinate which will be animated over). IfNone, use data.dims[0]kwargs – Keyword arguments to be passed to matplotlib
- Return type:
Examples
>>> ds["Derived_Number_Density_Electron"].epoch.animate()