sdf_xarray.plotting.EpochAccessor#
- class sdf_xarray.plotting.EpochAccessor(xarray_obj)[source]#
Bases:
objectMethods
- animate(*args, **kwargs)[source]#
Generate animations of Epoch data.
- Parameters:
args – Positional arguments passed to
generate_animation().kwargs – Keyword arguments passed to
generate_animation().
- Return type:
FuncAnimation
Examples
>>> import xarray as xr >>> from sdf_xarray import SDFPreprocess >>> ds = xr.open_mfdataset("*.sdf", preprocess=SDFPreprocess()) >>> ani = ds["Electric_Field_Ey"].epoch.animate() >>> ani.save("myfile.mp4")