Tank Plots Class#
- class rocketpy.plots.tank_plots._TankPlots[source]#
Class that holds plot methods for Tank class.
- Variables:
_TankPlots.tank (
Tank
) – Tank object that will be used for the plots.
- __init__(tank)[source]#
Initializes _MotorClass class.
- Parameters:
tank (
Tank
) – Instance of the Tank class- Return type:
None
- _generate_tank(translate=(0, 0), csys=1)[source]#
Generates a matplotlib patch object that represents the tank.
- Parameters:
ax (
matplotlib.axes.Axes
, optional) – Axes object to plot the tank on. If None, a new figure and axes will be created.translate (
tuple
, optional) – Tuple of floats that represents the translation of the tank geometry.csys (
float
, optional) – Coordinate system of the tank, this will define the orientation of the tank. Default is 1, which means that the tank will be drawn with the nose cone pointing left.
- Returns:
tank – Polygon object that represents the tank.
- Return type:
matplotlib.patches.Polygon