added performance plot legend, rolling normalization

This commit is contained in:
2025-11-24 22:27:40 -08:00
parent 779d7d2cc6
commit 55b69d4e33
3 changed files with 18 additions and 8 deletions

View File

@@ -24,5 +24,13 @@ function obj = plotPerformance(obj)
hold(obj.fPerf.Children(1), 'off');
end
% Add legend
agentStrings = repmat("Agent %d", size(obj.perf, 1) - 1, 1);
for ii = 1:size(agentStrings, 1)
agentStrings(ii) = sprintf(agentStrings(ii), ii);
end
agentStrings = ["Total"; agentStrings];
legend(obj.fPerf.Children(1), agentStrings, 'Location', 'northwest');
obj.performancePlot = o;
end