18 lines
625 B
Matlab
18 lines
625 B
Matlab
function fig_timing_measured()
|
|
%FIG_TIMING_MEASURED 实测一局:累计虚拟时间按动作类型的堆叠构成。
|
|
|
|
S = fig_style();
|
|
D = load_data(S, 'timing_measured');
|
|
fig = figure('Color', 'w', 'Visible', 'off');
|
|
ax = axes(fig);
|
|
|
|
seq = D.seq(:);
|
|
bands = [D.cum(:, 1), diff(D.cum, 1, 2)]; % area 对矩阵按列堆叠,这里给每层厚度
|
|
h = area(ax, seq, bands, 'FaceAlpha', 1);
|
|
xlim(ax, [seq(1), seq(end)]);
|
|
xlabel(ax, D.xlabel);
|
|
ylabel(ax, D.ylabel);
|
|
legend(ax, h, D.legend, 'Location', 'northwest');
|
|
fig_save(fig, S, 'timing-measured-q3-10-sources.png');
|
|
end
|