Skip to content

Conversation

gilbertogalvis
Copy link
Contributor

This PR fix issues and do awesome improvements with surfl functionality. surfl 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/surfl

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

[X,Y] = meshgrid(1:0.5:10,1:20);
Z = sin(X) + cos(Y);
surfl(X,Y,Z);

fig2plotly(gcf, 'offline', false,  'TreatAs', 'surfl');

Screenshots of results are shown bellow

Screen Shot 2021-09-21 at 2 28 48 PM

Screen Shot 2021-09-21 at 2 29 15 PM

Screen Shot 2021-09-21 at 2 29 42 PM

Screen Shot 2021-09-21 at 2 31 05 PM

Screen Shot 2021-09-21 at 2 31 38 PM

Links to Plotly Chart-Studio

https://chart-studio.plotly.com/~galvisgilberto/4446/#/
https://chart-studio.plotly.com/~galvisgilberto/4448/#/
https://chart-studio.plotly.com/~galvisgilberto/4450/#/
https://chart-studio.plotly.com/~galvisgilberto/4454/#/
https://chart-studio.plotly.com/~galvisgilberto/4456/#/

@gilbertogalvis gilbertogalvis merged commit 03f5ea4 into master Sep 21, 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