Skip to content

Commit

Permalink
Fix dashboard plot
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjohansson committed Aug 23, 2024
1 parent 44ffb7c commit 0fb7c23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Utilities/Visualization/plotDashboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,11 @@ function setPlot(ax, style, varargin)

if ~isempty(opt.timeBar)
hold on
plot(opt.timeBar(:,1), opt.timeBar(:,2), 'k--', 'linewidth', 1);
if ~isempty(opt.ylim)
plot(opt.timeBar(:,1), min(opt.timeBar(:,2), opt.ylim(2)), 'k--', 'linewidth', 1);
else
plot(opt.timeBar(:,1), opt.timeBar(:,2), 'k--', 'linewidth', 1);
end
hold off
end

Expand Down

0 comments on commit 0fb7c23

Please sign in to comment.