Changeset 1090 for trunk/src/plot_field.m
- Timestamp:
- Jan 21, 2021, 3:59:54 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r1077 r1090 968 968 colormap('jet'); % default matlab colormap ('jet') 969 969 end 970 971 if isfield(PlotParam.Axes,'CheckFixAspectRatio') && isequal(PlotParam.Axes.CheckFixAspectRatio,1)972 set(haxes,'DataAspectRatioMode','manual')973 if isfield(PlotParam.Axes,'AspectRatio')974 set(haxes,'DataAspectRatio',[PlotParam.Axes.AspectRatio 1 1])975 else976 set(haxes,'DataAspectRatio',[1 1 1])977 end978 end979 970 else %usual images (no contour) 980 971 % set colormap for image display … … 1052 1043 set(hima,'AlphaData',1)% full opacity (no transparency) by default 1053 1044 end 1045 end 1046 end 1047 if isfield(PlotParam.Axes,'CheckFixAspectRatio') && isequal(PlotParam.Axes.CheckFixAspectRatio,1) 1048 set(haxes,'DataAspectRatioMode','manual') 1049 if isfield(PlotParam.Axes,'AspectRatio') 1050 set(haxes,'DataAspectRatio',[PlotParam.Axes.AspectRatio 1 1]) 1051 else 1052 set(haxes,'DataAspectRatio',[1 1 1]) 1054 1053 end 1055 1054 end
Note: See TracChangeset
for help on using the changeset viewer.