필터 지우기
필터 지우기

PDEPLOT AND PDEPLOT3D CHANGE FEATURES

조회 수: 5 (최근 30일)
Giulia Ulpiani
Giulia Ulpiani 2020년 4월 10일
답변: darova 2020년 4월 10일
Dear community,
I am using PDE Toolbox, thermalmodel.
I'd like to edit some features of the plots, e.g.:
  • can I change the color of the line used for the edges of my geometry?
  • can I change the color of the faces?
  • can I change the color of the arrows in the 3D Flowdata plot?
And so forth... thank you

답변 (1개)

darova
darova 2020년 4월 10일
  • can I change the color of the line used for the edges of my geometry?
Use handlers
[p,e,t] = initmesh('lshapeg');
h = pdeplot(p,e,t);
set(h(1),'color','g') % inside edges
set(h(2),'color','b') % boundary edges
  • can I change the color of the faces?
plot your geometry using patch
patch('faces',t(1:3,:)','vertices',p',...
'facecolor','r')

Community Treasure Hunt

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

Start Hunting!

Translated by