Skip to content

fix issues and awesome improvements in meshc functionality #380

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

@gilbertogalvis gilbertogalvis commented Sep 18, 2021

This PR fix issues and do awesome improvements with meshc functionality. meshc previous version was very poor and failed for many cases. This new version is really awesome and work for any case. This PR was tested for all examples in https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/surface-and-mesh-plots/meshc

It is very important to highlight that to use this new functionality, TreatAs optional parameter must set to meshc. Example of usage bellow

[X,Y] = meshgrid(-5:.5:5);
Z = Y.*sin(X) - X.*cos(Y);
sc = meshc(X,Y,Z);

fig2plotly(gcf, 'offline', true,  'TreatAs', 'meshc');

Screenshots of results are shown bellow

Screen Shot 2021-09-18 at 11 16 21 AM

Screen Shot 2021-09-18 at 11 16 49 AM

Screen Shot 2021-09-18 at 11 17 25 AM

Screen Shot 2021-09-18 at 11 17 50 AM

Screen Shot 2021-09-18 at 11 20 34 AM

Screen Shot 2021-09-18 at 11 23 48 AM

Links to Chart-Studio bellow

https://chart-studio.plotly.com/~galvisgilberto/4426/#/
https://chart-studio.plotly.com/~galvisgilberto/4428/#/
https://chart-studio.plotly.com/~galvisgilberto/4430/#/
https://chart-studio.plotly.com/~galvisgilberto/4432/#/
https://chart-studio.plotly.com/~galvisgilberto/4438/#/
https://chart-studio.plotly.com/~galvisgilberto/4440/#/

@gilbertogalvis gilbertogalvis merged commit 453d1b6 into master Sep 18, 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