📅  最后修改于: 2022-03-11 14:55:14.476000             🧑  作者: Mango
t = linspace(-2*%pi, 2*%pi, 30);
subplot(2,1,1);
plot(t, sin(t), "r");
xlabel("t", "fontsize", 2);
ylabel("sin(t)");
axis1_handle = gca();
subplot(2,1,2);
plot(t, cos(t), "b");
xlabel("t", "fontsize", 2);
ylabel("cos(t)", "fontsize", 6, "color", "blue");
ylabel(axis1_handle, "sin(t)", "fontsize", 6, "color", "red");