Skip to content

Commit

Permalink
Fix visualisation (as done for rejectvisual_trial) (#1647)
Browse files Browse the repository at this point in the history
Visualisation was fixed for the trial based view of ft_rejectvisual a few days ago, but the issue remained for the channel based view. I've fixed this now.
  • Loading branch information
benjybarnett committed Jan 20, 2021
1 parent 5b34490 commit a0cea15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions private/rejectvisual_channel.m
Expand Up @@ -321,7 +321,7 @@ function update_plots(info)

for trlindx = find(info.trlsel)
% Shift the vertical axis to zero
vdat = info.data.trial{trlindx}(info.chanlop, :) - v_centers(trlindx);
vdat = info.data.trial{trlindx}(info.chanlop, :);
% Scale to length 1 of the new data
vdat = vdat ./ (ymax - ymin);
% Scale by availabe plot area
Expand All @@ -348,7 +348,7 @@ function new_plots(info)
% Update data of ALL trials, also excluded trials
for trlindx = 1:info.ntrl
% Shift the vertical axis to zero
vdat = info.data.trial{trlindx}(info.chanlop, :) - v_centers(trlindx);
vdat = info.data.trial{trlindx}(info.chanlop, :);
% Scale to length 1 of the new data
vdat = vdat ./ (ymax - ymin);
% Scale by availabe plot area
Expand Down Expand Up @@ -401,4 +401,4 @@ function check_buttons_status(info)
info.ui.excludenext.Enable = 'on';
info.ui.includenext.Enable = 'on';
end
end
end

0 comments on commit a0cea15

Please sign in to comment.