Skip to content
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

Fix issues and awesome improvements in surf functionality #375

Conversation

gilbertogalvis
Copy link
Contributor

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

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

[X,Y,Z] = peaks(25);
CO(:,:,1) = zeros(25); % red
CO(:,:,2) = ones(25).*linspace(0.5,0.6,25); % green
CO(:,:,3) = ones(25).*linspace(0,1,25); % blue
surf(X,Y,Z,CO);

f = fig2plotly(gcf, 'offline', 0, 'TreatAs', 'surf');

Screenshots of results are shown bellow

Screen Shot 2021-09-10 at 11 27 58 PM

Screen Shot 2021-09-10 at 11 28 31 PM

Screen Shot 2021-09-10 at 11 29 30 PM

Screen Shot 2021-09-10 at 11 30 14 PM

Screen Shot 2021-09-10 at 11 32 43 PM

Screen Shot 2021-09-10 at 11 33 41 PM

Links to Chart-Studio:

https://chart-studio.plotly.com/~galvisgilberto/4210/#/
https://chart-studio.plotly.com/~galvisgilberto/4212/#/
https://chart-studio.plotly.com/~galvisgilberto/4214/#/
https://chart-studio.plotly.com/~galvisgilberto/4216/#/
https://chart-studio.plotly.com/~galvisgilberto/4218/#/
https://chart-studio.plotly.com/~galvisgilberto/4220/#/

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