Cant make certain changes to plot

2 visualizzazioni (ultimi 30 giorni)
jrz
jrz il 14 Set 2022
Commentato: jrz il 14 Set 2022
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 Commenti
dpb
dpb il 14 Set 2022
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 il 14 Set 2022
Thanks very much

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by