spectre.Visualization.Plot¶
Functions
Add a CLI option to apply a stylesheet for plotting |
|
Add an 'output' CLI option and show or save the plot accordingly |
- spectre.Visualization.Plot.apply_stylesheet_command()¶
Add a CLI option to apply a stylesheet for plotting
- spectre.Visualization.Plot.show_or_save_plot_command()¶
Add an ‘output’ CLI option and show or save the plot accordingly
Apply this decorator to a CLI command that generates a plot or animation. Return the matplotlib.Figure or matplotlib.animation.Animation from your command. At the end of the command, the plot or animation is either shown interactively or saved to a file, depending on the user-specified ‘output’ option.