Rocket Plots Class#
- class rocketpy.plots.rocket_plots._RocketPlots[source]#
Class that holds plot methods for Rocket class.
- Variables:
_RocketPlots.rocket (
Rocket
) – Rocket object that will be used for the plots.
- __init__(rocket)[source]#
Initializes _RocketPlots class.
- Parameters:
rocket (
Rocket
) – Instance of the Rocket class- Return type:
None
- stability_margin()[source]#
Plots static margin of the rocket as a function of time.
- Return type:
None
- power_off_drag()[source]#
Plots power off drag of the rocket as a function of time.
- Return type:
None
- thrust_to_weight()[source]#
- Plots the motor thrust force divided by rocket
weight as a function of time.
- Return type:
None
- draw(vis_args=None)[source]#
Draws the rocket in a matplotlib figure.
- Parameters:
vis_args (
dict
, optional) –Determines the visual aspects when drawing the rocket. If None, default values are used. Default values are: {
”background”: “#EEEEEE”, “tail”: “black”, “nose”: “black”, “body”: “black”, “fins”: “black”, “motor”: “black”, “buttons”: “black”, “line_width”: 2.0,
} A full list of color names can be found at: https://matplotlib.org/stable/gallery/color/named_colors