Skip to content

Commit

Permalink
Merge pull request #680 from HJZollner/develop
Browse files Browse the repository at this point in the history
Automatically recalculate basis spectra in fit_plotBasis
  • Loading branch information
HJZollner authored Nov 27, 2023
2 parents bc78029 + 89c0d28 commit c1233e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file not shown.
7 changes: 6 additions & 1 deletion libraries/FID-A/fitTools/fit_plotBasis.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
end
end

% Recalcualte spectra if they are not yet included
if ~isfield(basisSet,'specs')
[basisSet]=osp_recalculate_basis_specs(basisSet)
end

% Generate a new figure and keep the handle memorized
out = figure;
% Prepare a couple of useful variables
Expand All @@ -78,7 +83,7 @@
if stagFlag
% Staggered plots will be in all black and separated by the mean of the
% maximum across all spectra
stag = mean(max(real(basisSet.specs(:,:,dim))));
stag = mean(max(real(basisSet.specs(basisSet.ppm > ppmmin & basisSet.ppm < ppmmax,:,dim))));

% Loop over all basis functions
hold on
Expand Down

0 comments on commit c1233e5

Please sign in to comment.