Skip to content

fix legend issues with pie3 code-examples in ssim_baselines/matlab/code-examples/data-distribution-plots/pie3/ #362

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 related to legend using pie3 function. Specifically working with plot_2_0_compare_two_pie_charts.m example in https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/data-distribution-plots/pie3

Code to test

y2010 = [50 0 100 95];
y2011 = [65 22 97 120];
labels = {'Investments','Cash','Operations','Sales'};
t = tiledlayout (2,1);
ax1 = nexttile;
pie3(ax1,y2010)
title('2010')
legend(labels)

ax2 = nexttile;
pie3(ax2,y2011)
title('2011')
legend(labels);

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

Result must look as follow

Screen Shot 2021-08-27 at 9 16 15 AM

Link to chart-studio bellow

https://chart-studio.plotly.com/~galvisgilberto/3708/_2010/#/

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