plotly/plotly_matlab

docs - pie3 subplot legend not properly captured

danton267 opened this issue · 0 comments

y2010 = [50 0 100 95];
y2011 = [65 22 97 120];
labels = {'Investments','Cash','Operations','Sales'};
labels2 = {'Investments2','Cash2','Operations2','Sales2'};

t = tiledlayout (2,1);
ax1 = nexttile;
pie3(ax1,y2010);
title('2010');
legend(labels);

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

fig2plotly(gcf, 'TreatAs', 'pie3');

legend merges into one


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

fig2plotly(gcf, 'TreatAs', 'pie3');

Only one legend is created