Changeset 1082 for trunk/src/get_field.m
- Timestamp:
- Jun 16, 2020, 5:38:56 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r1081 r1082 200 200 set(handles.scalar,'Value',1)% fill the menu of y vector components 201 201 set(handles.scalar,'String',Field.Display.ListVarName)% fill the menu for scalar 202 set(handles.ordinate,'Value',1)% fill the menu of y vector components203 set(handles.ordinate,'String',Field.Display.ListVarName)% fill the menu of y coordinate for 1D plots202 %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 204 204 checkseries=0; 205 205 if isfield(ParamIn,'SeriesInput') && ParamIn.SeriesInput% case of call by series … … 405 405 case '1D plot' 406 406 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) 413 413 set(handles.PanelScalar,'Visible','off') 414 414 set(handles.PanelVectors,'Visible','off') … … 420 420 case {'scalar'} 421 421 set(handles.Coordinates,'Visible','on') 422 set(handles.PanelOrdinate,'Visible','off')422 %set(handles.PanelOrdinate,'Visible','off') 423 423 set(handles.PanelScalar,'Visible','on') 424 424 set(handles.PanelVectors,'Visible','off') … … 456 456 set(handles.PanelVectors,'Visible','on') 457 457 set(handles.Coordinates,'Visible','on') 458 set(handles.PanelOrdinate,'Visible','off')458 %set(handles.PanelOrdinate,'Visible','off') 459 459 set(handles.PanelScalar,'Visible','off') 460 460 pos=get(handles.PanelVectors,'Position'); … … 496 496 vector_Callback(handles) 497 497 case 'civdata...' 498 set(handles.PanelOrdinate,'Visible','off')498 %set(handles.PanelOrdinate,'Visible','off') 499 499 set(handles.PanelScalar,'Visible','off') 500 500 set(handles.PanelVectors,'Visible','off') … … 502 502 end 503 503 504 % ------------------------------------------------------------------------504 %NOT USED : TO DELETE------------------------------------------------------------------------ 505 505 function ordinate_Callback(hObject, DimCell, handles) 506 506 %------------------------------------------------------------------------ … … 629 629 630 630 %% 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)>=3635 coord_val(3)=var_coord(end-2);636 end631 if 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 637 637 end 638 638 % if numel(find(test_coord))>3
Note: See TracChangeset
for help on using the changeset viewer.