Home > functions > job > job_plot_currentmap_dir > job_plot_cmap_update_colorbarscale.m

job_plot_cmap_update_colorbarscale

PURPOSE ^

Update colorbar scale

SYNOPSIS ^

function job_plot_cmap_update_colorbarscale(inst_id)

DESCRIPTION ^

 Update colorbar scale
 
 [history]
 2011-01-29 taku-y
 2011-03-16 taku-y
  [debug] Colorbar scale check is ignored when 'Fix' is checked on GUI.

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function job_plot_cmap_update_colorbarscale(inst_id)
0002 % Update colorbar scale
0003 %
0004 % [history]
0005 % 2011-01-29 taku-y
0006 % 2011-03-16 taku-y
0007 %  [debug] Colorbar scale check is ignored when 'Fix' is checked on GUI.
0008 %
0009 % Copyright (C) 2011, ATR All Rights Reserved.
0010 % License : New BSD License(see VBMEG_LICENSE.txt)
0011 
0012 global vbmeg_inst; 
0013 
0014 %
0015 % Global variables
0016 %
0017 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0018 cb1            = vbmeg_inst.plotcmap{inst_id}.cb1; % fix_colorbar
0019 cb6            = vbmeg_inst.plotcmap{inst_id}.cb6; % fix_colorbar_tf
0020 cb7            = vbmeg_inst.plotcmap{inst_id}.cb7; % activity map cb
0021 ed10           = vbmeg_inst.plotcmap{inst_id}.ed10; % Jmax_tf_plot_edit
0022 lb1            = vbmeg_inst.plotcmap{inst_id}.ed10; % activity map lb
0023 Jmax_plot_edit = vbmeg_inst.plotcmap{inst_id}.Jmax_plot_edit;
0024 Jmin_plot_edit = vbmeg_inst.plotcmap{inst_id}.Jmin_plot_edit;
0025 Jinfo          = vbmeg_inst.plotcmap{inst_id}.Jinfo;
0026 TFinfo         = vbmeg_inst.plotcmap{inst_id}.TFinfo;
0027 Jmax           = vbmeg_inst.plotcmap{inst_id}.Jmax;
0028 TFmax          = vbmeg_inst.plotcmap{inst_id}.TFmax;
0029 xxP            = vbmeg_inst.plotcmap{inst_id}.xxP;
0030 
0031 %
0032 % If released, update color scale edit boxes
0033 %
0034 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0035 if get(cb1,'Value')~=get(cb1,'Max'), 
0036   if ~isempty(xxP) && get(cb7,'Value'), 
0037     xxPmax = max(abs(xxP));
0038     set(Jmax_plot_edit,'String',num2str(xxPmax));
0039     set(Jmin_plot_edit,'String',num2str(0.1*xxPmax));
0040     job_plot_cmap_update_spatialpattern(inst_id);
0041   elseif ~isempty(Jinfo),
0042     set(Jmax_plot_edit,'String',num2str(Jmax));
0043     set(Jmin_plot_edit,'String',num2str(0.1*Jmax));
0044     job_plot_cmap_update_spatialpattern(inst_id);
0045   elseif ~isempty(TFinfo),
0046     set(Jmax_plot_edit,'String',num2str(TFmax));
0047     set(Jmin_plot_edit,'String',num2str(0.1*TFmax));
0048     job_plot_cmap_update_spatialpattern(inst_id);
0049   else
0050     set(Jmax_plot_edit,'String','');
0051     set(Jmin_plot_edit,'String','');
0052   end
0053 end
0054 %else
0055 %  set(Jmax_plot_edit,'String','');
0056 %  set(Jmin_plot_edit,'String','');
0057 %end
0058 
0059 if get(cb6,'Value')~=get(cb6,'Max'),
0060   if ~isempty(TFinfo),
0061     set(ed10,'String',num2str(TFmax));
0062     job_plot_cmap_update_timecourse(inst_id);
0063   end
0064 end
0065 
0066 return;

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005