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 ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·
-
getplotlyfig() Errorオープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
plotly/plotly_matlab#480 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
plotly/plotly_matlab#479 · コメント 1 件 · リアクション 3 件 ·
-
難易度 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 日以内に返信