specific RGB color in plot3

12 ビュー (過去 30 日間)
Alberto Acri
Alberto Acri 2022 年 11 月 21 日
編集済み: Dyuman Joshi 2022 年 11 月 21 日
I want to use the gray color in the function 'plot3'.
I currently use this to apply the black color:
plot3(A(:,1), A(:,2), A(:,3), 'k.','Markersize',5);
Since the figure is composed of nodes of x,y,z coordinates, I tried this way but it creates gray lines on the 3D figure:
plot3(A(:,1), A(:,2), A(:,3), 'Colors', [0.7, 0.7, 0.7],'Markersize',5);

採用された回答

Dyuman Joshi
Dyuman Joshi 2022 年 11 月 21 日
編集済み: Dyuman Joshi 2022 年 11 月 21 日
A=randi(100,10,3);
%Marker size 5 is a bit small for a good visual
plot3(A(:,1), A(:,2), A(:,3), 'LineStyle', 'none', 'Marker', '.',...
'Color', [0.7, 0.7, 0.7], 'Markersize', 7)

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by