RCAIDE.Library.Plots.Mass_Properties.plot_center_of_gravity_drift

plot_center_of_gravity_drift#

plot_center_of_gravity_drift(results, save_figure=False, show_legend=True, save_filename='Center_of_Gravity', file_type='.png', width=11, height=7)[source]#

Creates a four-panel plot showing throttle settings, vehicle weight, specific fuel consumption (SFC), and fuel consumption rate over time.

Parameters:
  • results (Results) – RCAIDE results structure containing segment data

  • save_figure (bool, optional) – Flag for saving the figure (default: False)

  • show_legend (bool, optional) – Flag for displaying plot legend (default: True)

  • save_filename (str, optional) – Name of file for saved figure (default: “Center_of_Gravity”)

  • file_type (str, optional) – File extension for saved figure (default: “.png”)

  • width (float, optional) – Figure width in inches (default: 11)

  • height (float, optional) – Figure height in inches (default: 7)

Returns:

fig – Figure handle containing the generated plots

Return type:

matplotlib.figure.Figure

Notes

The function creates a 2x2 subplot containing:
  1. Vehicle center of gravity x-location vs time

  2. Vehicle center of gravity y-location vs time

  3. Vehicle center of gravity z-location vs time

Each segment is plotted with a different color from the inferno colormap.