Flight Plots Class#
- class rocketpy.plots.flight_plots._FlightPlots[source]#
Class that holds plot methods for Flight class.
- Variables:
_FlightPlots.flight (
Flight) – Flight object that will be used for the plots._FlightPlots.first_event_time (
float) – Time of first event._FlightPlots.first_event_time_index (
int) – Time index of first event.
- __init__(flight)[source]#
Initializes _FlightPlots class.
- Parameters:
flight (
Flight) – Instance of the Flight class- Return type:
None
- property first_event_time#
Time of the first flight event.
- property first_event_time_index#
Time index of the first flight event.
- trajectory_3d(*, filename=None)[source]#
Plot a 3D graph of the trajectory
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- linear_kinematics_data(*, filename=None)[source]#
Prints out all Kinematics graphs available about the Flight
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- attitude_data(*, filename=None)[source]#
Prints out all Angular position graphs available about the Flight
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- flight_path_angle_data(*, filename=None)[source]#
Prints out Flight path and Rocket Attitude angle graphs available about the Flight
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- angular_kinematics_data(*, filename=None)[source]#
Prints out all Angular velocity and acceleration graphs available about the Flight
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- rail_buttons_bending_moments(*, filename=None)[source]#
Prints out Rail Buttons Bending Moments graphs.
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- rail_buttons_forces(*, filename=None)[source]#
Prints out all Rail Buttons Forces graphs available about the Flight.
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- aerodynamic_forces(*, filename=None)[source]#
Prints out all Forces and Moments graphs available about the Flight
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- energy_data(*, filename=None)[source]#
Prints out all Energy components graphs available about the Flight
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- fluid_mechanics_data(*, filename=None)[source]#
Prints out a summary of the Fluid Mechanics graphs available about the Flight
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- stability_and_control_data(*, filename=None)[source]#
Prints out Rocket Stability and Control parameters graphs available about the Flight
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- pressure_rocket_altitude(*, filename=None)[source]#
Plots out pressure at rocket’s altitude.
- Parameters:
filename (
str | None, optional) – The path the plot should be saved to. By default None, in which case the plot will be shown instead of saved. Supported file endings are: eps, jpg, jpeg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff and webp (these are the formats supported by matplotlib).- Return type:
None
- pressure_signals()[source]#
Plots out all Parachute Trigger Pressure Signals. This function can be called also for plot pressure data for flights without Parachutes, in this case the Pressure Signals will be simply the pressure provided by the atmosphericModel, at Flight z positions. This means that no noise will be considered if at least one parachute has not been added.
This function aims to help the engineer to visually check if there are anomalies with the Flight Simulation.
- Return type:
None