statsmodels.graphics.regressionplots.add_ellipse#
- statsmodels.graphics.regressionplots.add_ellipse(x, y, ax=None, alpha=0.95, **ellipse_kwargs)[source]#
Add a confidence ellipse to a plot axis
- Parameters:
- xarray_like, 1-dim
Data for the x-axis.
- yarray_like, 1-dim
Data for the y-axis.
- ax
AxesSubplot,optional The ellipse patch will be added to this axis. If None, the current matplotlib axis is used.
- alpha
float,optional Confidence level (e.g., 0.95 for 95%).
- ellipse_kwargs
Additional keyword arguments are passed to the Matplotlib Ellipse patch.
- Returns:
FigureThe figure that holds the instance.