Plotting several variables using stackedplot() not supported
Ouverte
@gilbertogalvis y travaille déjà.
Depuis le 14/8/2021.
- Langage dominant
- MATLAB
- Étoiles
- 413
- Forks
- 166
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
An error is being printed when using any variation of stackedplot().
Doesn't work with table, timetable nor array objects
Using a table, for instance:
tbl = readtable('patients.xls');
stackedplot(tbl,{'Height','Weight','Systolic','Diastolic'})
fig2plotly();
The expected plot would be:

Using common arrays:
rng(1)
X = 0:4:20;
Y = randi(100,6,3);
stackedplot(X,Y)
fig2plotly();
The expected plot would be:

However, in both cases the following error is printed:
Error using response_handler (line 31)
Expecting (x, y) pairs
Error in makecall (line 32)
response_handler(resp);
Error in plotly (line 28)
response = makecall(args, origin, structargs);
Error in plotlyfig/plotly (line 437)
response = plotly(obj.data,
args);
Error in fig2plotly (line 49)
p.plotly;
Error in stackedplot_6 (line 24)
fig2plotly();
Examples on how to use stackedplot() can be found on:
https://www.mathworks.com/help/matlab/ref/stackedplot.html#responsive_offcanvas
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Évaluation
Cette issue n'a pas encore été évaluée.