added performance plot legend, rolling normalization

This commit is contained in:
kdee committed 2025-11-25 09:07:02 -08:00
1 parent 779d7d2cc6
commit 55b69d4e33
3 files changed
+18 -8

No files matched your search

+8
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