Converting 3D scatter plot into 2D plot?
4 ビュー (過去 30 日間)
古いコメントを表示
Hello everybody,
I have a data include 10 column and more than 400000 row. I plot scatter3(x,y,z) to get 3D plot. Here x is the coordinate,y is the coordinate,z is the colour.
the function which i use to get x and y is:
x = sin(data.angle) .* data.Id
y = cos(data.angle) .* data.Id
z= data.load;
Now I want to convert my 3D plot into 2D without losing too much data. My 3D plot is kind of 4 pipe with different diameters and load (z) value is the colour is different in a each point of pipe. It is a bit difficult to explain, but hopefully you understood. If there is any suggestion to convert from 3D to 2D, i would be glad to hear.
2 件のコメント
Rik
2020 年 4 月 27 日
What do you mean with losing data?
Do you want to interpolate to a grid in x and y and use z as color?
It would be really helpful if you would provide data or code to generate plausible data.
Walter Roberson
2020 年 4 月 27 日
If z is the color then you can
scatter(x, y, POINTSIZE, z)
回答 (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!