-
Notifications
You must be signed in to change notification settings - Fork 616
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
resize and set different size of arrows #2526
Comments
Because the data is 3D volume, I display it in several slices ( |
vispy/vispy/visuals/line/arrow.py Lines 265 to 275 in a1a639f
vispy/vispy/glsl/arrowheads/arrowheads.vert Lines 78 to 79 in a1a639f
|
Hi!
I encountered some problems while drawing arrows, and I'm unsure how to achieve my requirements. I would greatly appreciate your assistance in resolving this.
My requirement is to overlay data with a vector field, similar to marking wind direction and magnitude on a map. I believe this can be achieved by combining
Image
andArrow
for display. I'm using the following code as a simple example.Now, my issues are as follows:
Resize: When I scroll the mouse wheel, the image scales, but the arrow sizes remain the same. Consequently, when the image shrinks to a certain extent, the arrows fill the entire screen, which looks odd. How should I configure it so that the arrow sizes also change along with the image?
I want to use arrow size to represent the magnitude of the field, so I would like to pass an array to arrow_size. However, it appears that currently, I can only set a fixed size."
When the image is rotated to a certain extent, the arrows appear strange.
The text was updated successfully, but these errors were encountered: