fastoad.gui.analysis_and_plots module¶
Defines the analysis and plotting functions for postprocessing
- fastoad.gui.analysis_and_plots.wing_geometry_plot(aircraft_file_path: str, name=None, fig=None, file_formatter=None) → plotly.graph_objs._figurewidget.FigureWidget[source]¶
Returns a figure plot of the top view of the wing. Different designs can be superposed by providing an existing fig. Each design can be provided a name.
- Parameters
aircraft_file_path – path of data file
name – name to give to the trace added to the figure
fig – existing figure to which add the plot
file_formatter – the formatter that defines the format of data file. If not provided, default format will be assumed.
- Returns
wing plot figure
- fastoad.gui.analysis_and_plots.aircraft_geometry_plot(aircraft_file_path: str, name=None, fig=None, file_formatter=None) → plotly.graph_objs._figurewidget.FigureWidget[source]¶
Returns a figure plot of the top view of the wing. Different designs can be superposed by providing an existing fig. Each design can be provided a name.
- Parameters
aircraft_file_path – path of data file
name – name to give to the trace added to the figure
fig – existing figure to which add the plot
file_formatter – the formatter that defines the format of data file. If not provided, default format will be assumed.
- Returns
wing plot figure
- fastoad.gui.analysis_and_plots.drag_polar_plot(aircraft_file_path: str, name=None, fig=None, file_formatter=None) → plotly.graph_objs._figurewidget.FigureWidget[source]¶
Returns a figure plot of the aircraft drag polar. Different designs can be superposed by providing an existing fig. Each design can be provided a name.
- Parameters
aircraft_file_path – path of data file
name – name to give to the trace added to the figure
fig – existing figure to which add the plot
file_formatter – the formatter that defines the format of data file. If not provided, default format will be assumed.
- Returns
wing plot figure
- fastoad.gui.analysis_and_plots.mass_breakdown_bar_plot(aircraft_file_path: str, name=None, fig=None, file_formatter=None) → plotly.graph_objs._figurewidget.FigureWidget[source]¶
Returns a figure plot of the aircraft mass breakdown using bar plots. Different designs can be superposed by providing an existing fig. Each design can be provided a name.
- Parameters
aircraft_file_path – path of data file
name – name to give to the trace added to the figure
fig – existing figure to which add the plot
file_formatter – the formatter that defines the format of data file. If not provided, default format will be assumed.
- Returns
bar plot figure
- fastoad.gui.analysis_and_plots.mass_breakdown_sun_plot(aircraft_file_path: str, file_formatter=None)[source]¶
Returns a figure sunburst plot of the mass breakdown. On the left a MTOW sunburst and on the right a OWE sunburst. Different designs can be superposed by providing an existing fig. Each design can be provided a name.
- Parameters
aircraft_file_path – path of data file
file_formatter – the formatter that defines the format of data file. If not provided, default format will be assumed.
- Returns
sunburst plot figure