sdf_xarray.plotting.EpochAccessor

sdf_xarray.plotting.EpochAccessor#

class sdf_xarray.plotting.EpochAccessor(xarray_obj)[source]#

Bases: object

__init__(xarray_obj)[source]#

Methods

__init__(xarray_obj)

animate(*args, **kwargs)

Generate animations of Epoch data.

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")