⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vis_planeaxisproperties.m

📁 it is matlab code , som(slef organizing map) tool for matlab
💻 M
字号:
function vis_PlaneAxisProperties(ax,lattice,msize,pos)% VIS_PLANEAXISPROPERTIES Set axis properties for SOM_CPLANE, %                         SOM_PIEPLANE, SOM_BARPLANE and SOM_PLOTPLANE.%% vis_PlaneAxisProperties(ax,lattice,msize,pos)%%  Input arguments: %   ax        (scalar) axis handle     %   lattice   (string) 'hexa', 'rect', 'hexaU' or 'rectU'%             (matrix) defines the patch, see e.g. help vis_patch%   msize     (vector) a 1x2 vector defining the grid size%   pos       (vector) a 1x2 vector that determines position of%                      origin or NaN which means default operation: %                      origin to [1 1] and tighten axis limits %                      according to the grid size.% % This is a subfunction for SOM_CPLANE, SOM_PIEPLANE, SOM_BARPLANE and% SOM_PLOTPLANE. This subfunction sets the proper values for axis.% Copyright (c) 1999-2000 by the SOM toolbox programming team.% http://www.cis.hut.fi/projects/somtoolbox/             % Version 2.0beta Johan 060799%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%xdim=msize(1);ydim=msize(2);set(ax,'Visible','off');set(get(ax,'Title'),'Visible','on');set(ax,'XaxisLocation','Top');            % axis orientationset(ax,'xdir','normal');                  % = axis ij = matrix modeset(ax,'ydir','reverse'); switch latticecase {'rect', 'rectU'}  lelim=-.51; rilim=.51; uplim=-.51; lolim=.51;  % axis limits  set(ax,'DataAspectRatio', [1 1 1]);            % =axis equalcase {'hexa','hexaU'}  lelim=-.51; rilim=1.01; uplim=-.67; lolim=.67; % axis limits  set(ax,'DataAspectRatio',[0.9015 1 1]);        % this corrects hexagonsend% Nan: default origin [1 1] & tighten the axisif isnan(pos)  set(ax,'XLim',[1+lelim ydim+rilim],'YLim',[1+uplim xdim+lolim], ...      'XLimMode','manual','YLimMode','manual'); % tighten the axisend

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -