t = 0:0.1:2*pi; x = 3*cos(t); y = sin(t); subplot(2, 2, 1); plot(x, y); axis normal subplot(2, 2, 2); plot(x, y); axis square subplot(2, 2, 3); plot(x, y); axis equal subplot(2, 2, 4); plot(x, y); axis equal tight
2.3一些功能
1 2 3 4 5 6 7 8 9 10 11 12 13
grid on/off Make the grid visible or invisible box on/off Make the box visible or invisible axis on/off Make the axes visible or invisible axis normal Automatically adjust the aspect ratio of the axes and the relative scaling of the data units axis square Make the current axes region square axis equal Set the aspect ratio so that the data units are the same in every direction axis equal tight Set the axis limits to the range of the data axis image Let the plot box fits tightly around the data axis ij Place the origin of the coordinate system in the upper left corner axis xy Place the origin in the lower left corner