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 Center および File Exchange2-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