Changeset 1082 for trunk/src/get_field.m


Ignore:
Timestamp:
Jun 16, 2020, 5:38:56 PM (2 years ago)
Author:
sommeria
Message:

rodrigues added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r1081 r1082  
    200200set(handles.scalar,'Value',1)% fill the menu of y vector components
    201201set(handles.scalar,'String',Field.Display.ListVarName)% fill the menu for scalar
    202 set(handles.ordinate,'Value',1)% fill the menu of y vector components
    203 set(handles.ordinate,'String',Field.Display.ListVarName)% fill the menu of y coordinate for 1D plots
     202%set(handles.ordinate,'Value',1)% fill the menu of y vector components
     203%set(handles.ordinate,'String',Field.Display.ListVarName)% fill the menu of y coordinate for 1D plots
    204204checkseries=0;
    205205if isfield(ParamIn,'SeriesInput') && ParamIn.SeriesInput% case of call by series
     
    405405    case '1D plot'
    406406        set(handles.Coordinates,'Visible','on')
    407         set(handles.PanelOrdinate,'Visible','on')
    408         pos=get(handles.PanelOrdinate,'Position');
    409         pos(1)=2;
    410         pos_coord=get(handles.Coordinates,'Position');
    411         pos(2)=pos_coord(2)-pos(4)-2;
    412         set(handles.PanelOrdinate,'Position',pos)
     407        %set(handles.PanelOrdinate,'Visible','on')
     408        %pos=get(handles.PanelOrdinate,'Position');
     409%         pos(1)=2;
     410%         pos_coord=get(handles.Coordinates,'Position');
     411%         pos(2)=pos_coord(2)-pos(4)-2;
     412        %set(handles.PanelOrdinate,'Position',pos)
    413413        set(handles.PanelScalar,'Visible','off')
    414414        set(handles.PanelVectors,'Visible','off')
     
    420420    case {'scalar'}
    421421        set(handles.Coordinates,'Visible','on')
    422         set(handles.PanelOrdinate,'Visible','off')
     422        %set(handles.PanelOrdinate,'Visible','off')
    423423        set(handles.PanelScalar,'Visible','on')
    424424        set(handles.PanelVectors,'Visible','off')
     
    456456        set(handles.PanelVectors,'Visible','on')
    457457        set(handles.Coordinates,'Visible','on')
    458         set(handles.PanelOrdinate,'Visible','off')
     458        %set(handles.PanelOrdinate,'Visible','off')
    459459        set(handles.PanelScalar,'Visible','off')
    460460        pos=get(handles.PanelVectors,'Position');
     
    496496        vector_Callback(handles)     
    497497    case 'civdata...'
    498         set(handles.PanelOrdinate,'Visible','off')
     498        %set(handles.PanelOrdinate,'Visible','off')
    499499        set(handles.PanelScalar,'Visible','off')
    500500        set(handles.PanelVectors,'Visible','off')
     
    502502end
    503503
    504 %------------------------------------------------------------------------
     504%NOT USED : TO DELETE------------------------------------------------------------------------
    505505function ordinate_Callback(hObject, DimCell, handles)
    506506%------------------------------------------------------------------------
     
    629629
    630630%% set default selection for grid coordinates
    631 if ~isempty(var_coord)
    632 coord_val(1)=var_coord(end);
    633 coord_val(2)=var_coord(end-1);
    634 if numel(var_coord)>=3
    635     coord_val(3)=var_coord(end-2);
    636 end
     631if numel(var_coord)>=2
     632    coord_val(1)=var_coord(end);
     633    coord_val(2)=var_coord(end-1);
     634    if numel(var_coord)>=3
     635        coord_val(3)=var_coord(end-2);
     636    end
    637637end
    638638% if numel(find(test_coord))>3
Note: See TracChangeset for help on using the changeset viewer.