source: trunk/src/get_field/PLOT.m @ 36

Last change on this file since 36 was 36, checked in by sommeria, 14 years ago

-get_field: functions called by ACTION in the GUI get_field put in the subdirectory get_field (like for series)
-help put in the subdir uvmat_doc, help call in uvmat, civ, geometry calib modified accordingly

File size: 794 bytes
RevLine 
[36]1%---------------------------------------------------------
2% --- Executes on button press in RUN.
3function PLOT(hget_field)
4%---------------------------------------------------------
5[SubField,errormsg]=read_get_field(hget_field);
6if ~isempty(errormsg)
7    msgbox_uvmat('ERROR',['error in get_field/PLOT input:' errormsg])
8    return
9end
10handles=guidata(hget_field);
11list_fig=get(handles.list_fig,'String');
12val=get(handles.list_fig,'Value');
13if strcmp(list_fig{val},'uvmat')
14    uvmat(SubField)
15else
16hfig=str2num(list_fig{val});% chosen figure number from tyhe GUI
17if isempty(hfig)
18    hfig=figure;
19    list_fig=[list_fig;num2str(hfig)];
20    set(handles.list_fig,'String',list_fig);
21    haxes=axes;
22else
23    figure(hfig);
24end
25haxes=findobj(hfig,'Type','axes');
26plot_field(SubField,haxes)
27end
Note: See TracBrowser for help on using the repository browser.