vispy icon indicating copy to clipboard operation
vispy copied to clipboard

3D Quiver Plot

Open sermetc opened this issue 4 years ago • 3 comments

Hi,

I am trying to do some phase space plotting for my research and I have 7 variables which I create a meshgrid using numpy as np.mgrid[0:1:10j,.....,[0:1:10j] and I give those grid values to a function to use them for alignment of arrow points. After that I use matplotlib's quiver to plot 3D quiver plot as, plt.quiver(x,y,z,u,v,w). But trying to do this much load of work with matplotlib is impossible in my case since I can not use GPU power with matplotlib but as far as I understand, vispy can easily handle the size of data I have.

Is there any way to recreate this program using ArrowVisuals + GridMesh or any other method?

sermetc avatar Dec 29 '20 01:12 sermetc

Do you have a screenshot of what the expected output looks like? @kmuehlbauer semi-recently worked in a WindBarbVisual I think that would be almost the same by the sounds of it. I'm not sure off-hand what the parameters are for that and am going offline for a bit, but given the time zone difference wanted to draw Kai's attention to this.

djhoese avatar Dec 29 '20 03:12 djhoese

Yes, the expected output would look like in the ballpark of the below image. I checked the WindBarbVisual example but it is not the result I want, the closest one actually the arrow_quivers but I could not manage to put arrow positions on a 3d mesh grid using GridMesh.

Screen Shot 2020-12-29 at 09 52 08

sermetc avatar Dec 29 '20 06:12 sermetc

@SermetCagan Did you get along with this? It would be interesting to learn how you solved it, finally.

kmuehlbauer avatar Nov 06 '21 17:11 kmuehlbauer