Home > NoiseTools > nt_topoplot.m

nt_topoplot

PURPOSE ^

nt_topoplot(cfg,data) - simple topoplot

SYNOPSIS ^

function nt_topoplot(cfg,data, varargin)

DESCRIPTION ^

nt_topoplot(cfg,data) - simple topoplot

  nt_topoplot(topo,data): use 'topo' layout file

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function nt_topoplot(cfg,data, varargin)
0002 %nt_topoplot(cfg,data) - simple topoplot
0003 %
0004 %  nt_topoplot(topo,data): use 'topo' layout file
0005 %
0006 
0007 if nargin<2; error('!'); end
0008 
0009 disp(varargin)
0010 
0011 data=data(:);
0012 
0013 if ~isstruct(cfg)
0014     topo=cfg; 
0015     cfg=[];
0016     cfg.layout=topo;
0017 end
0018 
0019 % todo: extract fields from cfg as arguments to ft_topo_plot
0020        
0021 layout=ft_prepare_layout(cfg);
0022 
0023 
0024 ft_plot_topo(layout.pos(1:numel(data),1), layout.pos(1:numel(data),2), data',...
0025     'mask', layout.mask,...
0026     'outline', layout.outline, ...
0027     'interplim', 'mask', varargin{:});
0028 
0029 % ensure symmetrical color axes
0030 clim=get(gca,'clim');
0031 set(gca,'clim',[-1 1]*max(abs(clim)));
0032 
0033 % axis off
0034 % axis equal

Generated on Sat 29-Apr-2023 17:15:46 by m2html © 2005