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

total_mass()[source]#

Plots total mass of the rocket as a function of time.

Return type:

None

reduced_mass()[source]#

Plots reduced mass of the rocket as a function of time.

Return type:

None

static_margin()[source]#

Plots static margin of the rocket as a function of time.

Return type:

None

stability_margin()[source]#

Plots static margin of the rocket as a function of time.

Return type:

None

power_on_drag()[source]#

Plots power on drag 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

drag_curves()[source]#

Plots power off and on drag curves 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

all()[source]#

Prints out all graphs available about the Rocket. It simply calls all the other plotter methods in this class.

Return type:

None