Changeset 789
- Timestamp:
- Jun 29, 2014, 4:12:27 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r782 r789 563 563 564 564 %% determine plot aspect ratio 565 %if isfield(Coordinates,'CheckFixAspectRatio') && isequal(Coordinates.CheckFixAspectRatio,1)&&isfield(Coordinates,'AspectRatio')566 %set(haxes,'DataAspectRatioMode','manual')567 %set(haxes,'DataAspectRatio',[Coordinates.AspectRatio 1 1])568 %else569 %set(haxes,'DataAspectRatioMode','auto')%automatic aspect ratio570 %AspectRatio=get(haxes,'DataAspectRatio');571 %CoordinatesOut.AspectRatio=AspectRatio(1)/AspectRatio(2);572 %end565 if isfield(Coordinates,'CheckFixAspectRatio') && isequal(Coordinates.CheckFixAspectRatio,1)&&isfield(Coordinates,'AspectRatio') 566 set(haxes,'DataAspectRatioMode','manual') 567 set(haxes,'DataAspectRatio',[Coordinates.AspectRatio 1 1]) 568 else 569 set(haxes,'DataAspectRatioMode','auto')%automatic aspect ratio 570 AspectRatio=get(haxes,'DataAspectRatio'); 571 CoordinatesOut.AspectRatio=AspectRatio(1)/AspectRatio(2); 572 end 573 573 574 574 %------------------------------------------------------------------- -
trunk/src/uvmat.m
r784 r789 3529 3529 if UvData.Field.NbDim<=1 3530 3530 set(handles.Objects,'Visible','off') 3531 [PlotType,PlotParamOut]=plot_field(UvData.Field,handles.PlotAxes,read_GUI(handles.uvmat)); 3531 [PlotType,PlotParamOut,haxes]=plot_field(UvData.Field,handles.PlotAxes,read_GUI(handles.uvmat)); 3532 UvData.PlotAxes=UvData.Field; %store data for further plot modifications 3532 3533 errormsg=fill_GUI(PlotParamOut,handles.uvmat); 3533 3534 for list={'Scalar','Vectors'} … … 5221 5222 drawnow 5222 5223 UvData=get(handles.uvmat,'UserData'); 5224 AxeData=[]; 5225 if isfield(UvData,'PlotAxes') 5223 5226 AxeData=UvData.PlotAxes;% retrieve the current plotted data 5227 end 5224 5228 PlotParam=read_GUI(handles.uvmat); 5225 5229 [tild,PlotParamOut]= plot_field(AxeData,handles.PlotAxes,PlotParam);
Note: See TracChangeset
for help on using the changeset viewer.