Problems with the legend when plotting multiple charts on same figure
オープン
@gilbertogalvis がすでに取り組んでいます。
2021年8月18日 から。
- 主要言語
- MATLAB
- スター
- 413
- フォーク
- 166
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When placing a legend on a figure with multiple charts, only one of them is correctly labeled.
For example,
y2010 = [50 0 100 95];
y2011 = [65 22 97 120];
labels = {'Investments','Cash','Operations','Sales'};
t = tiledlayout(1,2,'TileSpacing','compact');
% Create pie charts
ax1 = nexttile;
pie(ax1,y2010)
title('2010')
ax2 = nexttile;
pie(ax2,y2011)
title('2011')
% Create legend
lgd = legend(labels);
lgd.Layout.Tile = 'east';
fig2plotly();
Expected and generated () plots:
As you can see, the two legends are pretty different.
The previous example can be found on:
https://www.mathworks.com/help/matlab/ref/pie.html#responsive_offcanvas
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。