plotly / plotly/plotly_matlab

Issues when plotting stacked and non-stacked bar graphs on same figure

Offen
#212 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@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:
Captura de Pantalla 2021-07-27 a la(s) 8 09 09 p  m
Captura de Pantalla 2021-07-27 a la(s) 8 09 38 p  m

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

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.