Skip to content

Commit

Permalink
Bugfix: ScaleToFitY/PSD with no peak
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed Nov 11, 2020
1 parent 56a3cca commit e5fd7d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/license.html
Expand Up @@ -5,7 +5,7 @@
<body alink="#fff000" link="#fff000" vlink="#fff000">
<h4><span style="font-family: Arial Black; color: #ffffff;"><strong>THERE IS NO UNDO BUTTON - SET UP A BACKUP OF YOUR DATABASE</strong></span></h4>
<HR>
<!-- LICENCE_START -->Version: 3.201110 (10-Nov-2020)<br>
<!-- LICENCE_START -->Version: 3.201111 (11-Nov-2020)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2020
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.201110 (10-Nov-2020)
% v. 3.201111 (11-Nov-2020)
3 changes: 3 additions & 0 deletions toolbox/gui/figure_timeseries.m
Expand Up @@ -4329,6 +4329,9 @@ function ScaleToFitY(hFig, ev)
any(strcmpi(TfInfo.Function, {'power', 'magnitude'})) && strcmpi(TsInfo.YScale, 'linear') && all(TF(:)>=0)
TFmax = max(TF,[],1);
iStartMin = find(diff(TFmax)>0,1);
if isempty(iStartMin)
iStartMin = 1;
end
else
iStartMin = 1;
end
Expand Down

0 comments on commit e5fd7d5

Please sign in to comment.