Skip to content

ENH: Allow saving plots instead of showing them #564

@nalquas

Description

@nalquas

Is your feature request related to a problem? Please describe.

All matplotlib plots generated by RocketPy (for example via Rocket.draw or flight.all_info) are shown using matplotlib's show function. This does not really allow for automatic export of these plots (as is the case when not using Jupyter Notebook).

Describe the solution you'd like

Add a parameter to the info functions (and other plot-generating functions) for selecting between immediately showing the plot and saving the plot to a file. Internally, this can be done using matplotlib's savefig function.

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or request, including adjustments in current codesOutputsDedicated to visualizations enhancements like prints and plots

Type

No type

Projects

Status

Closed

Relationships

None yet

Development

No branches or pull requests

Issue actions