Skip to content

Multiple 3-D pie charts not working properly #200

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

Closed
xarico10 opened this issue Jul 27, 2021 · 1 comment
Closed

Multiple 3-D pie charts not working properly #200

xarico10 opened this issue Jul 27, 2021 · 1 comment
Assignees

Comments

@xarico10
Copy link
Contributor

Printing multiple 3-D pie charts using pie3() in the same figure isn't working properly: seems to be plotting only one series, the 2-D corresponding pie charts are being plotted under the 3-D ones, the grid is being plotted (when it shouldn't) and the legend isn't working properly neither.

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')

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

legend(labels)

fig2plotly();

Expected and generated () plots:
Captura de Pantalla 2021-07-26 a la(s) 11 44 17 p  m
Captura de Pantalla 2021-07-26 a la(s) 11 43 58 p  m

Examples on plotting multiple 3-D pie charts on the same figure can be found on:
https://www.mathworks.com/help/matlab/ref/pie3.html#mw_b04857aa-bd6f-411e-8587-b8bf4fe50591

@gilbertogalvis
Copy link
Contributor

PR #362 fix this issues (#362)

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/#/

@gilbertogalvis gilbertogalvis self-assigned this 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

No branches or pull requests

3 participants