how can one assign specific colors to bars in scatterbar3?
39 次查看(过去 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!