Problems with the legend when plotting multiple charts on same figure
@gilbertogalvis arbeitet bereits daran.
Seit 18.8.2021.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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
- Vorherrschende Sprache
- MATLAB
- Sterne
- 413
- Forks
- 166
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus plotly/plotly_matlab
-
Use valid Plotly.js CDN Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 55/100
plotly/plotly_matlab#526 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
plotly/plotly_matlab#523 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
plotly/plotly_matlab#481 · 1 Kommentar ·
-
getplotlyfig() Error Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
plotly/plotly_matlab#480 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 35/100
plotly/plotly_matlab#479 · 1 Kommentar · 3 Reaktionen ·
Alle Issues in plotly/plotly_matlab
Ähnliche Issues
-
Component: Continuous Integration Component: MATLAB Type: enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 94/100
VH-Lab/NDIcalc-vis-matlab#107 ·
-
bug unconfirmed
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
gnu-octave/statistics#498 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100