Skip to content

Commit

Permalink
fix Python script bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-frey committed May 21, 2021
1 parent f5c0f2c commit df8ba16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python-scripts/plot-diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
elif args.kind == kinds[3]:
for fname in args.filenames:
plot_parcel_volume(fname, show=args.show, fmt=args.fmt)
elif args.kind == kinds[3]:
elif args.kind == kinds[4]:
for fname in args.filenames:
plot_parcel_number(fname, show=args.show, fmt=args.fmt)
else:
Expand Down
5 changes: 1 addition & 4 deletions python-scripts/tools/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,7 @@ def plot_parcel_number(fname, show=False, fmt="png"):
plt.grid(linestyle='dashed', zorder=-1)

plt.xlabel(r'number of iterations')
plt.ylabel(r'parcel count$')

plt.legend(loc='upper center', ncol=3, bbox_to_anchor=(0.5, 1.25))

plt.ylabel(r'parcel count')
plt.tight_layout()

if show:
Expand Down

0 comments on commit df8ba16

Please sign in to comment.