RCAIDE.Library.Plots.Emissions.plot_CO2e_emissions

plot_CO2e_emissions#

plot_CO2e_emissions(results, save_figure=False, save_filename='CO2e_Emissions', show_legend=True, file_type='.png', width=8, height=5)[source]#

Generate a plot showing cumulative gCO2e emissions over the mission.

Parameters:
  • results (Data) –

    Mission results data structure containing: results.segments[i].conditions.emissions with fields:

    • cumulative_gCO2earray

      Cumulative GWP-weighted CO2 equivalent emissions [g CO2e]

  • save_figure (bool, optional) – Save figure to file if True, default False

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

  • show_legend (bool, optional) – Show legend on the plot if True, default True

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

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

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

Returns:

fig – Figure showing cumulative gCO2e over the full mission timeline

Return type:

matplotlib.figure.Figure