フィルターのクリア

3D scatter plot: can I make transparent points

6 ビュー (過去 30 日間)
AGG
AGG 2024 年 4 月 23 日
コメント済み: AGG 2024 年 4 月 26 日
Hello all,
I have a dataset of XYZ and a value I want to plot in a 3D view (attach JPG of my attempt). When using scatter3 it plots all the datapoints, making it hard to see any feature in the centre of the 3D cube. Is any way I could make the points to be transparent (or smaller) depending on its value ? the same way I have a colorbar, but in dot size, or transparency.
Thanks in advance
  2 件のコメント
Voss
Voss 2024 年 4 月 23 日
移動済み: Voss 2024 年 4 月 23 日
AGG
AGG 2024 年 4 月 26 日
Great ! thanks

サインインしてコメントする。

回答 (1 件)

ScottB
ScottB 2024 年 4 月 23 日
You can set the alpha attribute for each marker:
[X,Y] = meshgrid(-10:10);
Z = ones(21,21) * -2;
surf(X,Y,Z)
hold on
scatter([-8 2 4 -5 5 3],[7 4 2 -1 -7 0],200,'filled')
alpha('x')

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by