how can one assign specific colors to bars in scatterbar3?
37 ビュー (過去 30 日間)
古いコメントを表示
I have created a 3D scatter bar plot using scatterbar3(X,Y,Z,width). The data for this plot is grouped into 5 categories. I'd like to color the bars in the plot according to the group from which that bar came.
0 件のコメント
採用された回答
Star Strider
2024 年 11 月 27 日 17:23
Edit the function to return the ‘h’ vector (of patch handles) and then experiment with setting the 'FaceColor' (and perhaps 'EdgeColor') of each one. That is a minor tweak to the function, and should allow you to change the relevant characteristics.
9 件のコメント
Star Strider
2024 年 12 月 2 日 16:23
As always, my pleasure!
Sometimes ‘kludgy’ is the best option (in my experience as well).
.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!