How to plot this graph?

Hi everybody, I want to do plots like this one:
ExampleGraph2.png
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
Ajay Kumar 2019 年 11 月 6 日
doc scatter
Juan Castillo
Juan Castillo 2019 年 11 月 7 日
I think it's not a scatter plot, it seems a contour plot, but I don't know how to do it
darova
darova 2019 年 11 月 8 日
Did you try scatter?
Juan Castillo
Juan Castillo 2019 年 11 月 8 日
Yes, and it works:
CapturaPrueba.PNG
But if you look very close to the first graph, there are no points, no spots, it seems like a "little surface", so that makes me think about a contour plot, but I dont know hoy to do a contour plot with 3 columns
darova
darova 2019 年 11 月 8 日
You can fill circles and change their size
Juan Castillo
Juan Castillo 2019 年 11 月 8 日
Yep, but is there a way to plot the data as a contour plot?
darova
darova 2019 年 11 月 8 日
YOu can draw each circle with patch, but it's a bad idea
Juan Castillo
Juan Castillo 2019 年 11 月 8 日
And what about the contour plot? Sorry for being so insistent
darova
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 件)

Juan Castillo
Juan Castillo 2019 年 11 月 7 日

0 投票

Any help?
Thanks
Juan Castillo
Juan Castillo 2019 年 11 月 8 日

0 投票

Anybody please?

カテゴリ

製品

質問済み:

2019 年 11 月 6 日

コメント済み:

2019 年 11 月 8 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by