Ignore:
Timestamp:
May 20, 2010, 1:48:25 AM (11 years ago)
Author:
sommeria
Message:

many bug corrections and cleaning. Activation of the BW option in uvmat. Improvement of the interaction of get_field with uvmat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field/PLOT.m

    r80 r89  
    11%---------------------------------------------------------
    22% --- Executes on button press in RUN.
    3 function PLOT(hget_field)
     3function SubField=PLOT(hget_field)
    44%---------------------------------------------------------
     5SubField=[]; %default
     6if ~exist('hget_field','var')
     7    return
     8end
    59[SubField,errormsg]=read_get_field(hget_field);
    610if ~isempty(errormsg)
    711    msgbox_uvmat('ERROR',['error in read_get_field/PLOT input:' errormsg])
    8     return
    912end
    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 else
    16     hfig=str2num(list_fig{val});% chosen figure number from tyhe GUI
    17     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     else
    23         figure(hfig);
    24     end
    25     haxes=findobj(hfig,'Type','axes');
    26     plot_field(SubField,haxes)
    27 end
Note: See TracChangeset for help on using the changeset viewer.