Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting several variables using stackedplot() not supported #170

Open
xarico10 opened this issue Jul 25, 2021 · 0 comments
Open

Plotting several variables using stackedplot() not supported #170

xarico10 opened this issue Jul 25, 2021 · 0 comments
Assignees

Comments

@xarico10
Copy link
Contributor

xarico10 commented Jul 25, 2021

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:
Captura de Pantalla 2021-07-25 a la(s) 2 39 13 p  m

Using common arrays:

rng(1)
X = 0:4:20;
Y = randi(100,6,3);
stackedplot(X,Y)

fig2plotly();

The expected plot would be:
Captura de Pantalla 2021-07-25 a la(s) 2 40 32 p  m

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants