RCAIDE.Library.Plots.Emissions.plot_emission_species_masses

plot_emission_species_masses#

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

Generate a stacked area plot showing cumulative emissions mass by species over the mission.

Parameters:
  • results (Data) –

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

    • CO2 : array, carbon dioxide mass [kg]

    • NOx : array, nitrogen oxide mass [kg]

    • H2O : array, water vapor mass [kg]

    • CO : array, carbon monoxide mass [kg]

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

  • show_legend (bool, optional) – Display species legend if True, default True

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

  • 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 stacked cumulative species emissions mass over time

Return type:

matplotlib.figure.Figure