lightlab.util.plot module¶
Summary¶
Classes:
DynamicLine |
A line that can refresh when called |
Functions:
plotCovEllipse |
Plots an ellipse enclosing volume based on the specified covariance matrix (cov) and location (pos). |
Reference¶
-
class
DynamicLine(formatStr='b-', existing=None, geometry=[(0, 0), (4, 4)])[source]¶ Bases:
objectA line that can refresh when called
Parameters:
-
plotCovEllipse(cov, pos, volume=0.5, ax=None, **kwargs)[source]¶ Plots an ellipse enclosing volume based on the specified covariance matrix (cov) and location (pos). Additional keyword arguments are passed on to the ellipse patch artist.
Parameters: - cov – The 2x2 covariance matrix to base the ellipse on
- pos – The location of the center of the ellipse. Expects a 2-element sequence of [x0, y0].
- volume – The volume inside the ellipse; defaults to 0.5
- ax – The axis that the ellipse will be plotted on. Defaults to the current axis.
- kwargs – passed to Ellipse plotter