Changeset 89 for trunk/src/get_field
- Timestamp:
- May 20, 2010, 1:48:25 AM (15 years ago)
- Location:
- trunk/src/get_field
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field/FFT.m
r36 r89 3 3 %requests for the visibility of input windows in the GUI series (activated directly by the selection in the menu ACTION) 4 4 if ~exist('hget_field','var') 5 GUI_input={'check_1Dplot','y';...% 6 'check_scalar','n';... % 7 'check_vector','n'... % 8 }; 5 GUI_input={'check_1Dplot'}; 9 6 return %exit the function 10 7 end -
trunk/src/get_field/PLOT.m
r80 r89 1 1 %--------------------------------------------------------- 2 2 % --- Executes on button press in RUN. 3 function PLOT(hget_field)3 function SubField=PLOT(hget_field) 4 4 %--------------------------------------------------------- 5 SubField=[]; %default 6 if ~exist('hget_field','var') 7 return 8 end 5 9 [SubField,errormsg]=read_get_field(hget_field); 6 10 if ~isempty(errormsg) 7 11 msgbox_uvmat('ERROR',['error in read_get_field/PLOT input:' errormsg]) 8 return9 12 end 10 handles=guidata(hget_field);11 list_fig=get(handles.list_fig,'String');12 val=get(handles.list_fig,'Value');13 if strcmp(list_fig{val},'uvmat')14 uvmat(SubField)15 else16 hfig=str2num(list_fig{val});% chosen figure number from tyhe GUI17 if isempty(hfig)18 hfig=figure;19 list_fig=[list_fig;num2str(hfig)];20 set(handles.list_fig,'String',list_fig);21 haxes=axes;22 else23 figure(hfig);24 end25 haxes=findobj(hfig,'Type','axes');26 plot_field(SubField,haxes)27 end
Note: See TracChangeset
for help on using the changeset viewer.