how can one assign specific colors to bars in scatterbar3?
조회 수: 3 (최근 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일
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일
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!