-
-
Notifications
You must be signed in to change notification settings - Fork 251
ENH: Allow saving plots instead of showing them #564
Copy link
Copy link
Closed
Labels
EnhancementNew feature or request, including adjustments in current codesNew feature or request, including adjustments in current codesOutputsDedicated to visualizations enhancements like prints and plotsDedicated to visualizations enhancements like prints and plots
Milestone
Metadata
Metadata
Assignees
Labels
EnhancementNew feature or request, including adjustments in current codesNew feature or request, including adjustments in current codesOutputsDedicated to visualizations enhancements like prints and plotsDedicated to visualizations enhancements like prints and plots
Is your feature request related to a problem? Please describe.
All matplotlib plots generated by RocketPy (for example via
Rocket.draworflight.all_info) are shown using matplotlib'sshowfunction. 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
savefigfunction.