Change background color of patternCustom figure.

5 ビュー (過去 30 日間)
le_cakou
le_cakou 2025 年 2 月 25 日
コメント済み: Voss 2025 年 2 月 25 日
Does anybody know how to change the background color for a figure produced with the patternCustom class? I do not see a field for it.

採用された回答

Voss
Voss 2025 年 2 月 25 日
helixdata = randn(1000,3);
h = patternCustom(helixdata(:,3),helixdata(:,2),helixdata(:,1))
h =
Surface (3D polar plot) with properties: EdgeColor: [0 0 0] LineStyle: 'none' FaceColor: 'interp' FaceLighting: 'flat' FaceAlpha: 1 XData: [1000x1000 double] YData: [1000x1000 double] ZData: [1000x1000 double] CData: [1000x1000 double] Use GET to show all properties
fig = ancestor(h,'figure');
fig.Color = [0.85,0.55,0.85];
  4 件のコメント
le_cakou
le_cakou 2025 年 2 月 25 日
awesome! thanks!
Voss
Voss 2025 年 2 月 25 日
You're welcome!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by