Cant make certain changes to plot

조회 수: 2 (최근 30일)
jrz
jrz 2022년 9월 14일
댓글: jrz 2022년 9월 14일
Im trying to change the axis font size, remove the fill of the airfoil shape and increase the linewidth on this plot but for some reason the standrd commmands arent working. Would appreciate some help
figure(1)
hold on
grid on
grid minor
contour(real(z),imag(z),imag(f),[-5:.2:5])
plot(real(z_circle),imag(z_circle),'b')
axis equal
axis([-5 5 -5 5])
hold on
contour(real(J),imag(J),imag(f),[-5:.2:5])
fill(real(z_airfoil),imag(z_airfoil),'w')
axis equal
axis([-5 5 -5 5])
ax.FontSize = 20;
xlabel('Real (x)');
ylabel('Imaginary (y)');
box on
set(gca,'GridLineStyle','-')
set(gca,'MinorGridLineStyle','-')
set(gca,'GridColor','k')
set(gca,'MinorGridColor','k')
  댓글 수: 2
dpb
dpb 2022년 9월 14일
ax.FontSize = 20;
ax is undefined in the above code...there may have been another axes in workspace, but it isn't going to be addressing the one here.
figure(1)
hold on
grid on
grid minor
contour(real(z),imag(z),imag(f),[-5:.2:5])
plot(real(z_circle),imag(z_circle),'b')
hAx=gca; % get current axes
axis equal
axis([-5 5 -5 5])
%hold on % hold is already on...superfluous
contour(real(J),imag(J),imag(f),[-5:.2:5])
fill(real(z_airfoil),imag(z_airfoil),'w')
%axis equal % dito
%axis([-5 5 -5 5])
hAx.FontSize = 20; % use current handle
xlabel('Real (x)');
ylabel('Imaginary (y)');
box on
set(hAx,'GridLineStyle','-','MinorGridLineStyle','-')
set(hAx,'GridColor','k','MinorGridColor','k')
You forgot to attach the needed data so anybody could possibly try to duplicate any issues about the color...
jrz
jrz 2022년 9월 14일
Thanks very much

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by