ENH: Allow saving plots instead of showing them #564
Labels
Enhancement
New feature or request, including adjustments in current codes
Outputs
Dedicated to visualizations enhancements like prints and plots
Milestone
Is your feature request related to a problem? Please describe.
All matplotlib plots generated by RocketPy (for example via
Rocket.draw
orflight.all_info
) are shown using matplotlib'sshow
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.The text was updated successfully, but these errors were encountered: