Commit c2d465e1 authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

minor bugfix

parent 5630e652
......@@ -174,10 +174,10 @@ if meshOnly
set(h,'EdgeAlpha',edgeAlpha,'EdgeColor',edgeColor,'FaceColor',faceColor);
else
set(h,'UserData',nodeIDs);
if strcmpi(sArgs.plotType,'lin')
if ismember(sArgs.plotType,{'lin','real','imag'})
title(['Magnitude (linear, ' sArgs.plotObject.channelUnits{1} ') at ' sArgs.plotDomain ': ' abscissaStr]);
if isempty(sArgs.plotRange) || numel(sArgs.plotRange) < 2
sArgs.plotRange = [1.2*min(plotData(:)) 1.2*max(plotData(:))];
sArgs.plotRange = [-1.2 1.2].*max(abs(plotData(:)));
end
set(gca,'CLim',sort(sArgs.plotRange));
elseif strcmpi(sArgs.plotType,'phase')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment