refactored performance plot data storage
This commit is contained in:
@@ -15,12 +15,14 @@ function obj = plotPerformance(obj)
|
||||
% Plot current cumulative performance
|
||||
hold(obj.fPerf.Children(1), 'on');
|
||||
o = plot(obj.fPerf.Children(1), obj.perf(end, :));
|
||||
o.XData = NaN(size(o.XData)); % correct time will be set at runtime
|
||||
hold(obj.fPerf.Children(1), 'off');
|
||||
|
||||
% Plot current agent performance
|
||||
for ii = 1:(size(obj.perf, 1) - 1)
|
||||
hold(obj.fPerf.Children(1), 'on');
|
||||
o = [o; plot(obj.fPerf.Children(1), obj.perf(ii, :))];
|
||||
o(end).XData = NaN(size(o(end).XData)); % correct time will be set at runtime
|
||||
hold(obj.fPerf.Children(1), 'off');
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user