How to plot this graph?
이전 댓글 표시
Hi everybody, I want to do plots like this one:

I have a set of 1500 data points (as shown in the figure). Each one has a different value, like a 'Z' coordinate (for this reason each of them has different colour):
3.20517 3.19289 -1.52965
3.19289 3.19462 -1.52965
3.19462 3.20517 -1.52965
3.20517 3.20885 -1.52965
3.20885 3.18635 -1.52965
3.18635 3.19622 -1.07372
3.19622 3.18359 -0.84327
[SL: snipping the rest of the (several page long) data set. Showing a few points is suffficient to show what your data looks like.]
Where the first column is the x-coordinate, the second one is the y-coordinate and the third column is the value of the desired colorbar (different to the original figure)
How can I plot this? I tried with the contour function with no results, may anyone help me out?
Many thanks in advance,
Regards
댓글 수: 9
Ajay Kumar
2019년 11월 6일
doc scatter
Juan Castillo
2019년 11월 7일
darova
2019년 11월 8일
Did you try scatter?
Juan Castillo
2019년 11월 8일
darova
2019년 11월 8일
You can fill circles and change their size
Juan Castillo
2019년 11월 8일
darova
2019년 11월 8일
YOu can draw each circle with patch, but it's a bad idea
Juan Castillo
2019년 11월 8일
darova
2019년 11월 8일
If you look in help (contour) you will see that contour is a product of surface. You don't have surface, you have only points. Maybe i don't understand you correctly: what do you mean by contour?
답변 (2개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
