Environment Plots Class#

class rocketpy.plots.environment_plots._EnvironmentPlots[source]#

Class that holds plot methods for Environment class.

Variables:
  • _EnvironmentPlots.environment (Environment) – Environment object that will be used for the plots.

  • _EnvironmentPlots.grid (list) – Height grid for Environment plots.

__init__(environment)[source]#

Initializes _EnvironmentPlots class.

Parameters:

environment (Environment) – Instance of the Environment class

Return type:

None

gravity_model()[source]#

Plots the gravity model graph that represents the gravitational acceleration as a function of height.

Return type:

None

atmospheric_model()[source]#

Plots all atmospheric model graphs available. This includes wind speed and wind direction, density and speed of sound, wind u and wind v, and pressure and temperature.

Return type:

None

ensemble_member_comparison()[source]#

Plots ensemble member comparisons. It requires that the environment model has been set as Ensemble.

Return type:

None

info()[source]#

Plots a summary of the atmospheric model, including wind speed and wind direction, density and speed of sound. This is important for the Environment.info() method.

Return type:

None

all()[source]#

Prints out all graphs available about the Environment. This includes a complete description of the atmospheric model and the ensemble members comparison if the atmospheric model is an ensemble.

Return type:

None

_EnvironmentPlots__density_speed_of_sound(ax)#

Adds density and speed of sound graphs to the same axis.

Parameters:

ax (matplotlib.pyplot.axis) – Axis to add the graphs.

Returns:

ax – Axis with the graphs.

Return type:

matplotlib.pyplot.axis

_EnvironmentPlots__pressure_temperature(ax)#

Adds pressure and temperature graphs to the same axis.

Parameters:

ax (matplotlib.pyplot.axis) – Axis to add the graphs.

Returns:

ax – Axis with the graphs.

Return type:

matplotlib.pyplot.axis

_EnvironmentPlots__wind(ax)#

Adds wind speed and wind direction graphs to the same axis.

Parameters:

ax (matplotlib.pyplot.axis) – Axis to add the graphs.

Returns:

ax – Axis with the graphs.

Return type:

matplotlib.pyplot.axis

_EnvironmentPlots__wind_components(ax)#

Adds wind u and wind v graphs to the same axis.

Parameters:

ax (matplotlib.pyplot.axis) – Axis to add the graphs.

Returns:

ax – Axis with the graphs.

Return type:

matplotlib.pyplot.axis