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

added magnitude option

parent f0c65696
......@@ -41,7 +41,7 @@ function varargout = surf(this, varargin)
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);
......@@ -49,6 +49,10 @@ end
numArgIn = nargin;
if sArgs.magnitude
data = abs(data);
%% now set r and color according to the input variables
% there is three options for the colorbar settings:
Supports Markdown
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