Skip to content

Commit 0f365d9

Browse files
authored
Merge pull request #257 from OpenPIV/alexlib-patch-4
added x,y,u,v = tools.transform_coordinates(x,y,u,v)
2 parents 9d4ac35 + 5ab5880 commit 0f365d9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

openpiv/piv.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def simple_piv(im1, im2, plot=True):
5454
ax.quiver(x[valid], y[valid], u[valid], -v[valid], scale=70,
5555
color='r', width=.005)
5656
plt.show()
57+
58+
# conform with the windef and tools.display_vector_field
59+
x,y,u,v = tools.transform_coordinates(x,y,u,v)
5760

5861
return x, y, u, v, s2n
5962

0 commit comments

Comments
 (0)