| |
创建坐标轴axes
ColorOrder
LineStyleOrder
set(gcf,'DefaultAxesColorOrder',[1 0 0;0 1 0;0 0 1])
set(0,'DefaultAxesColorOrder',[1 0 0;0 1 0;0 0 1])
For example, define a default ColorOrder ofred, green, and blue and a default
LineStyleOrder ofsolid, dashed, and dotted lines.
set(0,'DefaultAxesColorOrder',[1 0 0;0 1 0;0 0
1],...
Then plot some multiline data.
t = 0:pi/20:2*pi;
a =
ones(length(t),9);
for i = 1:9
end
plot(t,a)