Issues when plotting stacked and non-stacked bar graphs on same figure
Offen
@harshpurwar arbeitet bereits daran.
Seit 29.7.2021.
- Vorherrschende Sprache
- MATLAB
- Sterne
- 413
- Forks
- 166
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Not possible to plot stacked and non-stacked bar graphs on same figure:
y = [1 2 3; 4 5 6];
tiledlayout(2,1)
% Top bar graph
ax1 = nexttile;
bar(ax1,y)
% Bottom bar graph
ax2 = nexttile;
bar(ax2,y,'stacked')
fig2plotly();
Expected and generated (https://chart-studio.plotly.com/~xarico10/561/#/) plots:


As seen, one of the graphs shouldn't be stacked, however both are. Also, there are color mismatches.
Examples on this type of practices can be found on:
https://www.mathworks.com/help/matlab/ref/bar.html#btj3klf
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.