Skip to content

Commit

Permalink
add beam_plot() method that accepts command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric G. Stern committed Jun 6, 2024
1 parent 7a8c98d commit 3ecf9f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/analysis_tools/diag_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ def do_plots(options, plotparams):
if options.show:
pyplot.show()

def diag_plot(command):
plotparams = generate_plotparams()
plotargs = command.split()
options = handle_args(plotargs, plotparams)
do_plots(options, plotparams)

if __name__ == '__main__':
plotparams = generate_plotparams()
options = handle_args(sys.argv[1:], plotparams)
Expand Down

0 comments on commit 3ecf9f5

Please sign in to comment.