Skip to content

docs - pie3 subplot legend not properly captured #443

Open
@danton267

Description

@danton267
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions