Skip to content

Commit

Permalink
fix scale in the quiver plot
Browse files Browse the repository at this point in the history
  • Loading branch information
caiostringari committed Jul 14, 2021
1 parent a3c5c84 commit 2f8272f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file modified doc/flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion src/post/plot_averaged_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
required=False,
help="Maximun speed value.")

parser.add_argument("--scale", "-qs",
action="store",
dest="scale",
default=100,
required=False,
help="Scale for the arrows.")

parser.add_argument("--output", "-o",
action="store",
dest="output",
Expand All @@ -74,6 +81,7 @@

CUT = float(args.cut)
step = int(args.step)
scale = float(args.scale)

# try to read the average image
try:
Expand Down Expand Up @@ -126,7 +134,7 @@
grid_y[::step, ::step],
u_mean[::step, ::step],
v_mean[::step, ::step], mag[::step, ::step],
cmap="viridis", norm=norm)
cmap="viridis", norm=norm, scale=scale)

if has_avg:
extent = [grid_x.min(), grid_x.max(), grid_y.min(), grid_y.max()]
Expand Down

0 comments on commit 2f8272f

Please sign in to comment.