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

docs - quiver 3 problem #453

Closed
danton267 opened this issue Oct 23, 2021 · 1 comment
Closed

docs - quiver 3 problem #453

danton267 opened this issue Oct 23, 2021 · 1 comment

Comments

@danton267
Copy link
Member

[x, y, z] = meshgrid(-0.8:0.2:0.8, -0.8:0.2:0.8, -0.8:0.8:0.8);

u = sin(pi*x).*cos(pi*y).*cos(pi*z);
v = -cos(pi*x).*sin(pi*y).*cos(pi*z);
w = sqrt(2/3)*cos(pi*x).*cos(pi*y).*sin(pi*z);

figure
quiver3(x, y, z, u, v, z)

axis([-1 1 -1 1 -1 1])

title('Turbulence Values')
xlabel('x')
ylabel('x')
zlabel('z')

fig2plotly(gcf);

Does not work. All the other quier3 do.
It results in the following warning

Arguments must be 2-D, or at least one argument must be scalar. Use TIMES (.*) for elementwise multiplication, or use PAGEMTIMES to apply matrix multiplication to the pages of N-D arrays.
We had trouble parsing the quiver object.
This trace might not render properly.
gilbertogalvis pushed a commit that referenced this issue Oct 23, 2021
@gilbertogalvis
Copy link
Contributor

This issue was fixed by PR #454

attached result

Screen Shot 2021-10-23 at 12 13 06 PM

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

No branches or pull requests

2 participants