Commit fe556c36 authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter

added magnitude option

parent f0c65696
......@@ -41,7 +41,7 @@ function varargout = surf(this, varargin)
narginchk(1,inf);
defaultProperties = {'EdgeAlpha',0, 'FaceColor', 'interp'};
sArgs = struct('pos1_data','double', 'radius', [],defaultProperties{:},'parent',[]);
sArgs = struct('pos1_data','double', 'radius', [],'magnitude',0,defaultProperties{:},'parent',[]);
if ~isempty(varargin)
[data,sArgs] = ita_parse_arguments(sArgs,varargin);
end
......@@ -49,6 +49,10 @@ end
numArgIn = nargin;
if sArgs.magnitude
data = abs(data);
end
%% now set r and color according to the input variables
% there is three options for the colorbar settings:
......
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