Skip to content

fig2plotly working with cone plotly function when coneplot matlab function is required #366

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

Conversation

gilbertogalvis
Copy link
Contributor

This PR implement matlab coneplot function by using cone plotly function. Previously coneplot was implemented using mesh3d plotly function.

It is important too highlight that to use this modification it is necessary to set TreatAs optional parameter to 'coneplot'.

Example of usage:

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, 'TreatAs', 'coneplot');

Result looks as follow

Screen Shot 2021-08-31 at 10 00 47 AM

link to chart-studio
https://chart-studio.plotly.com/~galvisgilberto/3830/#/

@gilbertogalvis gilbertogalvis merged commit 568f391 into master Aug 31, 2021
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

Successfully merging this pull request may close these issues.

2 participants