- If C is a vector with length equal to the length of X, Y, and Z, then the values in C are linearly mapped to the colors in the current colormap.
How do I create and assign custom color scheme per value on a scatter3 plot?
조회 수: 4 (최근 30일)
이전 댓글 표시
Plotting a path of latitude, longitude and altitude using scatter3, I want to assign a color scheme for each point based on its air temperature. How do I create a color gradient from the max/min temperatures values and automatically fill in the rest? Thank you.
댓글 수: 0
채택된 답변
Star Strider
2018년 4월 23일
That seems to be described in the documentation for scatter3:
scatter3(X,Y,Z,S,C) draws each circle with the color specified by C.
댓글 수: 4
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!