Categorical data not supported
@gilbertogalvis 已經在處理了。
開始於 2021年10月16日。
評估
這個 Issue 還沒有評估資料。
描述
When using categorical data on different types of plots, an error is being printed.
For example,
tbl = readtable(fullfile(matlabroot,'examples','matlab','data','BicycleCounts.csv'));
daynames = ["Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday"];
x = categorical(tbl.Day,daynames);
y = tbl.Total;
c = hour(tbl.Timestamp);
swarmchart(x,y,20,c,'filled');
fig2plotly();
Prints the following warning message:
Index in position 2 exceeds array bounds (must not exceed 1).
We had trouble parsing the scatter object.
This trace might not render properly.
Then, prints the following error:
Error using response_handler (line 31)
Hm... Plotly had some trouble decoding your
'args'. Are you sure your data or styling object
is in the right format? Check out the examples
at https://plotly.com/api for guidance.
Need help? Please try searching Plotly's <a
href='http://stackoverflow.com/questions/tagged/plotly'>Stack
Overflow channel</a>.
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 D_swarmchart_4 (line 42)
fig2plotly();
Expected plot:

An example using categorical data can be found on:
https://www.mathworks.com/help/matlab/ref/swarmchart.html#mw_b4fe23df-071d-4ceb-991c-c53325d89599
- 主要語言
- MATLAB
- 星號
- 414
- 分支
- 166
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/plotly_matlab 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 45/100
plotly/plotly_matlab#523 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
plotly/plotly_matlab#481 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 35/100
plotly/plotly_matlab#480 ·
-
難度 1/5 1 小時以內 新手友好度 35/100
plotly/plotly_matlab#479 · 1 則留言 · 3 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 25/100
plotly/plotly_matlab#474 ·
查看 plotly/plotly_matlab 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
flybywiresim/aircraft#11006 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
HenrikBengtsson/R.matlab#61 ·
-
easy first-contributor first-contributors good first issue help wanted matlab up-for-grabs
難度 1/5 1 小時以內 新手友好度 85/100
fork-commit-merge/fork-commit-merge#8442 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 87/100
VH-Lab/NDI-matlab#1115 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug-report SimpleFlight
難度 2/5 1-3 小時 新手友好度 68/100
iamaisim/ProjectAirSim#241 ·
維護者通常 1 天內回覆