biogeme.tools.ellipse module¶
Representation of an ellipse
Michel Bierlaire Sat Dec 21 16:45:00 2024
- class biogeme.tools.ellipse.Ellipse(center_x, center_y, sin_phi, cos_phi, axis_one, axis_two)[source]¶
Bases:
object
Contains the information needed to draw an ellipse
- Parameters:
center_x (float)
center_y (float)
sin_phi (float)
cos_phi (float)
axis_one (float)
axis_two (float)
-
axis_one:
float
¶
-
axis_two:
float
¶
-
center_x:
float
¶
-
center_y:
float
¶
-
cos_phi:
float
¶
-
sin_phi:
float
¶
- biogeme.tools.ellipse.draw_ellipse(ellipse, ax=None, **kwargs)[source]¶
Draws an ellipse using matplotlib.
- Parameters:
ellipse (
Ellipse
) – An Ellipse object containing the parameters of the ellipse.ax – A matplotlib Axes object. If None, a new figure and axes will be created.
kwargs – Additional keyword arguments passed to matplotlib.patches.Ellipse.