Change background color of patternCustom figure.

조회 수: 4 (최근 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 CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by