Skip to content

Commit

Permalink
Fixed minor bug in the function plot_predictions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlefringhausen committed Jun 18, 2024
1 parent 002c66b commit 1e346b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MATLAB/src/plot_predictions.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function plot_predictions(y_pred, y_test, varargin)
fill([t_pred(non_inf_idx), flip(t_pred(non_inf_idx))], [y_min(non_inf_idx), flip(min(min(y_pred_min, y_test))*ones(1, sum(non_inf_idx)))], 'r', 'linestyle', 'none', 'FaceAlpha', 0.35, 'DisplayName', 'constraints');
end
if ~isempty(y_max)
non_inf_idx = ~isinf(y_min);
non_inf_idx = ~isinf(y_max);
fill([t_pred(non_inf_idx), flip(t_pred(non_inf_idx))], [y_max(non_inf_idx), flip(max(max(y_pred_max, y_test))*ones(1, sum(non_inf_idx)))], 'r', 'linestyle', 'none', 'FaceAlpha', 0.35, 'DisplayName', 'constraints');
end

Expand Down

0 comments on commit 1e346b5

Please sign in to comment.