Skip to content

Commit

Permalink
Remove show argument as base dadi does not have it, add show flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjstruck committed Jul 2, 2024
1 parent 7c74154 commit 787959c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dadi_cli/Plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def plot_single_sfs(
dadi.Plotting.plot_1d_fs(fs, show=show)
if len(fs.sample_sizes) == 2:
fig = plt.figure(219033)
dadi.Plotting.plot_single_2d_sfs(fs, vmin=vmin, show=show)
dadi.Plotting.plot_single_2d_sfs(fs, vmin=vmin)#, show=show)
if len(fs.sample_sizes) == 3:
try:
fig = plt.figure(219033, figsize=(10,4))
Expand Down
7 changes: 7 additions & 0 deletions dadi_cli/parsers/plot_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,11 @@ def add_plot_parsers(subparsers: argparse.ArgumentParser) -> None:
required=False,
help="Display plots in matplotlib window.",
)
parser.add_argument(
"--show",
default=False,
action="store_true",
required=False,
help="Display plots in matplotlib window.",
)
parser.set_defaults(runner=_run_plot)

0 comments on commit 787959c

Please sign in to comment.