plotly / plotly/plotly_matlab

docs - pie3 subplot legend not properly captured

未关闭
#443 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
MATLAB
星标
413
派生
166
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先运行 issue 中的 MATLAB 示例,其中包含两个平铺的 pie3 子图和彼此独立的图例。跟踪入口 fig2plotly(gcf, 'TreatAs', 'pie3'),查看每个子图的图例是如何被捕获的。当两个子图的图例仍然彼此独立,并保留各自的标签时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
matlab
领域
data-visualization
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。