aeon.analysis.plotting#
- aeon.analysis.plotting.circle(x, y, radius, *args, ax=None, **kwargs)[source]#
Plot a circle centered at the given x, y position with the specified radius.
- Parameters:
x (number) – The x-component of the circle center.
y (number) – The y-component of the circle center.
radius (number) – The radius of the circle.
ax (Axes, optional) – The Axes on which to draw the circle.
- aeon.analysis.plotting.colorline(x, y, z=None, cmap=None, norm=None, ax=None, **kwargs)[source]#
Plot a dynamically colored line on the specified Axes.
- Parameters:
y (array-like x,) – The horizontal / vertical coordinates of the data points.
z (array-like, optional)
The dynamic variable used to color each data point by indexing the color map. :param str or ~matplotlib.colors.Colormap, optional cmap: The colormap used to map normalized data values to RGBA colors. :param matplotlib.colors.Normalize, optional norm: The normalizing object used to scale data to the range [0, 1] for indexing the color map. :param Axes, optional ax: The Axes on which to draw the colored line.
- aeon.analysis.plotting.heatmap(position, frequency, ax=None, **kwargs)[source]#
Draw a heatmap of time spent in each location from specified position data and sampling frequency.
- Parameters:
position (Series) – A series of position data containing x and y coordinates.
frequency (number) – The sampling frequency for the position data.
ax (Axes, optional) – The Axes on which to draw the heatmap.
- aeon.analysis.plotting.rateplot(events, window, frequency, weight=1, start=None, end=None, smooth=None, center=True, ax=None, **kwargs)[source]#
Plot the continuous event rate and raster of a discrete event sequence.
The window size and sampling frequency can be specified.
- Parameters:
events (Series) – The discrete sequence of events.
window (offset) – The time period of each window used to compute the rate.
frequency (DateOffset, Timedelta or str) – The sampling frequency for the continuous rate.
weight (number, optional) – A weight used to scale the continuous rate of each window.
start (datetime, optional) – The left bound of the time range for the continuous rate.
end (datetime, optional) – The right bound of the time range for the continuous rate.
smooth (DateOffset, Timedelta or str, optional) – The size of the smoothing kernel applied to the rate output.
smooth
The size of the smoothing kernel applied to the continuous rate output. :param bool, optional center: Specifies whether to center the convolution kernels. :param Axes, optional ax: The Axes on which to draw the rate plot and raster.