Changeset 789 for trunk/src/plot_field.m
- Timestamp:
- Jun 29, 2014, 4:12:27 PM (10 years ago)
- File:
-
- 1 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 %-------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.