Skip to content

fix issues and awesome improvements in mesh functionality #378

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 fix issues and do awesome improvements with mesh functionality. mesh previous version was very poor. This new version is really awesome. This PR was tested for all examples in https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/surface-and-mesh-plots/mesh

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

[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
C = X.*Y;
mesh(X,Y,Z,C)
colorbar;

f = fig2plotly(gcf, 'offline', false, 'TreatAs', 'mesh');

Screenshots of results are shown bellow

Screen Shot 2021-09-15 at 6 59 57 PM

Screen Shot 2021-09-15 at 7 00 42 PM

Screen Shot 2021-09-15 at 7 01 40 PM

Screen Shot 2021-09-15 at 7 02 36 PM

Screen Shot 2021-09-15 at 7 03 22 PM

Links to Chart-Studio

https://chart-studio.plotly.com/~galvisgilberto/4392/#/
https://chart-studio.plotly.com/~galvisgilberto/4394/#/
https://chart-studio.plotly.com/~galvisgilberto/4396/#/
https://chart-studio.plotly.com/~galvisgilberto/4398/#/
https://chart-studio.plotly.com/~galvisgilberto/4400/#/

@gilbertogalvis gilbertogalvis merged commit ead2ed2 into master Sep 16, 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