plotly / plotly/plotly_matlab

Plotting several variables using stackedplot() not supported

Đang mở
#170 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@gilbertogalvis đang làm issue này rồi.

Từ ngày 14/8/2021.

Ngôn ngữ chính
MATLAB
Star
413
Fork
166
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.