pytrebuchet.plotting.initial_position module
Module for plotting the initial position of trebuchets.
- pytrebuchet.plotting.initial_position.plot_initial_position(trebuchet: Trebuchet, *, show: bool = True) tuple[Figure, Axes]
Plot the initial position of the trebuchet and the projectile.
- Parameters:
trebuchet – Trebuchet instance
show – If True, display the plot immediately. Else, just return the figure and axes objects.
- Returns:
None
- pytrebuchet.plotting.initial_position._get_trebuchet_limits(trebuchet: Trebuchet) tuple[tuple[float, float], tuple[float, float]]
Return the trebuchet limits.
- These are the minimum and maximum x- and y- positions that the points
making up the trebuchet can take for plotting.
- Parameters:
trebuchet – Trebuchet instance
- Returns:
(x_min, x_max), (y_min, y_max)