docs - pie3 subplot legend not properly captured
Open
Nobody has claimed this yet.
- Dominant language
- MATLAB
- Stars
- 413
- Forks
- 166
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the MATLAB example from the issue with two tiled pie3 subplots and separate legends. Trace the fig2plotly(gcf, 'TreatAs', 'pie3') entry point to see how legends are captured for each subplot. Done means both subplot legends remain separate and retain their respective labels.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matlab
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100