Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curly Vector 1 implementatioin #610

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

jukent
Copy link
Collaborator

@jukent jukent commented Jul 25, 2024

This method of making curly vectors uses streamlines without arrows, finds their end points, and afixes length-0 quiver arrows to the ends. We may want to investigate a curly vector function in geocat-viz, but this demonstrates the recommended work around by matplotlib and will be useful to users for now.

@jukent jukent changed the title Placeholder PR to highlight code changes Curly Vector 1 implementatioin Aug 7, 2024
@jukent jukent marked this pull request as ready for review August 7, 2024 22:27
Copy link
Collaborator

@kafitzgerald kafitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really cool!

It looks like the length scales of the vectors don't match the originals though: https://www.ncl.ucar.edu/Applications/Images/vector_1_lg.png

I think this is because of more conceptual differences between streamplot (integrates forward or backward until some constraint) and curly vectors (length varies with vector magnitude). It's handled length normalization in the various approaches here, but I don't know how robust that is.

@kafitzgerald kafitzgerald marked this pull request as draft October 21, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants