Skip to content

Commit

Permalink
ENH - fix for visualization (#1645)
Browse files Browse the repository at this point in the history
  • Loading branch information
schoffelen committed Jan 19, 2021
1 parent 568577b commit 8b5a678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions private/rejectvisual_trial.m
Expand Up @@ -321,7 +321,7 @@ function update_plots(info)

for chanindx = find(info.chansel)
% Shift the vertical axis to zero
vdat = info.data.trial{info.trlop}(chanindx, :) - v_centers(chanindx);
vdat = info.data.trial{info.trlop}(chanindx, :);
% Scale to length 1 of the new data
vdat = vdat ./ (ymax - ymin);
% Scale by availabe plot area
Expand Down Expand Up @@ -361,7 +361,7 @@ function new_plots(info)
hdat = hdat + h_centers(chanindx);

% Shift the vertical axis to zero
vdat = info.data.trial{info.trlop}(chanindx, :) - v_centers(chanindx);
vdat = info.data.trial{info.trlop}(chanindx, :);
% Scale to length 1 of the new data
vdat = vdat ./ (ymax - ymin);
% Scale by availabe plot area
Expand Down

0 comments on commit 8b5a678

Please sign in to comment.