Scatter Plot, Color on Z not differentiated as expected
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a dataset of ~150k pts, xyz. Range of z is pretty broad, as illustrated below. I'd like a color map of z, not just shades of blue. I know I must be missing something obvious!
댓글 수: 0
답변 (1개)
Star Strider
2018년 10월 29일
Experiment with scatter3 instead of scatter. (If you want a 2D view, you can do that with the view function.)
The default colormap should show different colors as a function of ‘z’. Also, consider experimenting with the caxis function.
댓글 수: 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!