How to do a section plot- 2D discrete graphs and Z in colorbar
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I have a three columns vector, with which I would like to represent Y versus X on a discrete scatter plot, and z in colorbar (the color of each point).
Sorry if it seems a beginner answer but I can't manage to find that in the help.
Thanks
댓글 수: 0
답변 (3개)
Venn Ravichandran
2011년 9월 23일
Can you use scatter(x,y,r,z), where r is an integer representing the size of the markers?
You could also use patch to plot x vs y, with z as the color, turn off the patch face color and use only the edges (Hint: set 'edgecolor' to 'interp').
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Polygons에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!