Skip to content

Cones not being filled when using coneplot() #311

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

Closed
xarico10 opened this issue Aug 5, 2021 · 2 comments
Closed

Cones not being filled when using coneplot() #311

xarico10 opened this issue Aug 5, 2021 · 2 comments
Assignees

Comments

@xarico10
Copy link
Contributor

xarico10 commented Aug 5, 2021

When using coneplot() to plot velocity vectors as cones pointing in the direction of the velocity vector and having a length proportional to the magnitude of the velocity vector, the cones aren't filled by default, when they should.

load wind
xmin = min(x(:));
xmax = max(x(:));
ymin = min(y(:));
ymax = max(y(:));
zmin = min(z(:));
xrange = linspace(xmin,xmax,8);
yrange = linspace(ymin,ymax,8);
zrange = 3:4:15;
[cx,cy,cz] = meshgrid(xrange,yrange,zrange);
coneplot(x,y,z,u,v,w,cx,cy,cz,5);

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/1039/#/) plots:
Captura de Pantalla 2021-08-05 a la(s) 4 14 24 p  m
Captura de Pantalla 2021-08-05 a la(s) 4 14 41 p  m

Examples can be found on:
https://www.mathworks.com/help/matlab/ref/coneplot.html

gilbertogalvis pushed a commit that referenced this issue Aug 10, 2021
gilbertogalvis pushed a commit that referenced this issue Aug 10, 2021
@gilbertogalvis
Copy link
Contributor

PR #333 fix this issue

Screen Shot 2021-08-10 at 7 05 19 PM

Screen Shot 2021-08-10 at 7 05 58 PM

@gilbertogalvis gilbertogalvis self-assigned this Aug 10, 2021
@VolKa79
Copy link

VolKa79 commented Aug 11, 2021

Everything works fine with
fig2plotly(gcf, 'offline', true, 'TriangulatePatch', true);
is6

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

3 participants