Skip to content

Cones not being filled when using coneplot() #311

Closed
@xarico10

Description

@xarico10

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions