0001 function job_plot_cmap_update_colorbarscale(inst_id)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 global vbmeg_inst;
0013
0014
0015
0016
0017
0018 cb1 = vbmeg_inst.plotcmap{inst_id}.cb1;
0019 cb6 = vbmeg_inst.plotcmap{inst_id}.cb6;
0020 cb7 = vbmeg_inst.plotcmap{inst_id}.cb7;
0021 ed10 = vbmeg_inst.plotcmap{inst_id}.ed10;
0022 lb1 = vbmeg_inst.plotcmap{inst_id}.ed10;
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
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
0055
0056
0057
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;