Closed chi86 closed 1 year ago
See the updated version.
https://gist.github.com/alexlib/f6855a1d9b53b6b7cd5e9571cc9b826f
Thank you very much! This works fine, but this mirrors the display.
could you please play with the x,y,u,v
and see how best to feed it into streamplot?
is the second version better, the one that uses pivpy
?
I found a workaround. Following the steps:
frame_a=frame_a[::-1,:]
get_coordinates
I mirror y (y=-(y-y.max())
) and fix the sign of v0 (v0=-v0
)I have same issue with the pivpy
version.
Thanks for the help!
If possible, share your notebook so things are clear to others you can fork or suggest on gist https://gist.github.com/alexlib/f6855a1d9b53b6b7cd5e9571cc9b826f
here's a fix for pivpy - I need to use the original x,y,u,v
and not transformed
https://gist.github.com/alexlib/3baa2abecd769f9eac30a57a3bbeb675
Here the link to the gist: https://gist.github.com/chi86/53ba84bf9f5a8626f84c08ef2a905c69
Here the link to the gist: https://gist.github.com/chi86/53ba84bf9f5a8626f84c08ef2a905c69
I see, but the results are only "visually" correct, not really. You see - the original image has an origin top left and the result you present is bottom left - so the direction of rotation is maybe visually correct, but the values are not. We had quite a long discussion of this issue and decided that we present stuff on image to comply with the visual info - for instance if we play two images, what direction we see? clockwise from A to B frame. But if we consider u,v according to x,y located at 0,0 and we consider vertical upwards as positive v, then the actual result is negative v on the right side and positive v on the left side of the vortex.
I think we will close this issue as resolved
Hi, when I try to run the command
strm = ax.streamplot(x,y,u,v, color=u, linewidth=2, cmap='autumn')
given in: https://gist.github.com/alexlib/77d4eef714f75989572debff53157722I get following error:
This used to work the last time I ran it a year ago.....
I use the following:
Any help is very much appreciated. Thanks!