Skip to content

Fix issues pie3 in ssim baselines matlab code examples data distribution plots pie3 #361

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 almost all issues working with pie3 function base on code-examples in https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/data-distribution-plots/pie3
Please test code-examples there.

Remembering... to work with pie3 matlab function, TreatAs optional parameter must set to 'pie3'. Example:

x = [1,3,0.5,2.5,2];
figure
pie3(x);
explode = [0,1,0,0,0];
figure
pie3(x,explode);

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

Results looks as:

Screen Shot 2021-08-26 at 7 53 02 PM

Screen Shot 2021-08-26 at 7 53 12 PM

Screen Shot 2021-08-26 at 7 53 38 PM

Screen Shot 2021-08-26 at 7 53 47 PM

Screen Shot 2021-08-26 at 7 54 07 PM

Screen Shot 2021-08-26 at 7 54 14 PM

links to chart-studio bellow

https://chart-studio.plotly.com/~galvisgilberto/3570/#/
https://chart-studio.plotly.com/~galvisgilberto/3564/#/
https://chart-studio.plotly.com/~galvisgilberto/3568/_2010/#/

@VolKa79
Copy link

VolKa79 commented Aug 27, 2021

Now it obviously works better then before
pie2

But for future still something wrong with labels
pie1

@gilbertogalvis
Copy link
Contributor Author

Now it obviously works better then before
pie2

But for future still something wrong with labels
pie1

Correct!

@gilbertogalvis gilbertogalvis merged commit ef6f926 into master Aug 27, 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.

3 participants